UNPKG

@codefast/image-loader

Version:

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

13 lines (12 loc) 345 B
import type { ImageLoaderProps } from "next/image"; /** * Imgix URL transformation * Handles *.imgix.net domains * * @example * ```text * https://example.imgix.net/image.jpg * → https://example.imgix.net/image.jpg?auto=format&q=80&w=800 * ``` */ export declare function imgixLoader({ quality, src, width }: ImageLoaderProps): string;