@codefast/image-loader
Version:
Simple, functional image loader for Next.js supporting multiple CDN providers
13 lines (12 loc) • 372 B
TypeScript
import type { ImageLoaderProps } from "next/image";
/**
* PixelBin URL transformation
* Handles PixelBin CDN
*
* @example
* ```text
* https://example.com/image.jpg
* → https://cdn.pixelbin.io/v2/cloud-name/t.resize(w:800)~t.compress(q:80)/image.jpg?f_auto=true
* ```
*/
export declare function pixelbinLoader({ quality, src, width }: ImageLoaderProps): string;