ImageLoader
Builds the URL of one candidate.
Builds the URL of one candidate. The default points at the optimizer; a loader replaces it (a CDN's own resizing URL, for example).
Import#
ts
import type { ImageLoader } from "@shadow-js/dusk";
Signature#
ts
type ImageLoader = (details: {
readonly src: string;
readonly width: number;
readonly quality: number;
readonly format: ImageFormat | undefined;
}) => string