UNPKG

@codefast/image-loader

Version:

Simple, functional image loader for Next.js supporting multiple CDN providers

13 lines (12 loc) 336 B
import type { ImageLoaderProps } from "next/image"; /** * Thumbor URL transformation * Handles Thumbor service * * @example * ```text * https://example.com/image.jpg * → https://example.com/800x0/filters:quality(80)/image.jpg * ``` */ export declare function thumborLoader({ quality, src, width }: ImageLoaderProps): string;