downsize.dev
Downscale any image to a given height. Always WebP. CORS open. Fast.
Use
https://downsize.dev/{height}/{image url}
<img src="https://downsize.dev/200/https://example.com/photo.jpg">
Details
- Width follows the aspect ratio. Images are never upscaled.
- Output is lossy WebP. Still WebPs that already fit are returned untouched.
- Reads JPEG, PNG, WebP, GIF, AVIF and HEIC. For animations, only the first frame.
Access-Control-Allow-Origin: *on every response, sofetch()and canvas work.- The scheme is optional (https is assumed). The image URL's own query string is kept.
- Height 1–4096. Sources up to 32 MB and 100 megapixels, on public hosts, ports 80 and 443.
Server-Timingshows where the time went.