A custom image loader pointing to cloudphoto—WebP, AVIF, srcset, and cache, no optimization server to host.
The next/image component expects a loader: plug it into cloudphoto and let the CDN handle all optimization. You keep the next/image API (srcset, sizes, lazy-loading) without running Next's optimizer or paying for its transformations.
Why cloudphoto
Custom loader in one function
A loader that builds the signed cloudphoto URL: the rest of your next/image code doesn't change.
Server load reduced
Optimization no longer runs on your Next instance—less CPU, lower hosting costs.
Automatic WebP and AVIF
format=auto serves the lightest format supported by each browser, no setup needed.