icdn.dev
Simple and fast way to optimise, resize, crop and cache images on the fly with Cloudflare CDN.
Usage
Add the image path to the end of the url. Optionally url encode the path.
Configure the parameters and try it out live:https://icdn.dev/
https://example.com/image.png
?width=100&height=100
100×100pxpng...
Features
- Resize images - Resize or crop images to any size
- Convert images - Convert images between different formats. Supports avif, webp, png, jpeg
- Serve images - Automatically served optimised images based on supported extensions in the accept header. Supports avif, webp, png, jpeg
- Cache images - Temporarily cache images(to cf-cache/r2/kv) to so that subsequent requests return instantly.
- Optimise png - Optimize png outputs with oxipng.
Plans
- Under development
- Free - 1GB common cache storage, 1 requests/IP/sec
- Pro - 1GB private cache storage, 10 requests/IP/sec, paid persistent storage, custom icdn.dev subdomain, custom presets
- Enterprise - 10GB private cache storage, 100 requests/IP/sec, custom domain linking, whitelist custom ip
Allowed parameters
width
- numberheight
- numberfit
- cover, contain, crop, scale-downquality
- number(1-100), default = 80, if lossless is not set. only applicable for jpeg and webpformat
- avif, webp, png, jpeg. Determined automatically between avif and webp or returns the same as source.compression
- fast, slow, default = slow. disables automatic avif and webp conversion if set to fast.optimizePng
- number(0-5), default = 3. only for png. 0 = no compression, 5 = maximum compressionlossless
- boolean, default = false. only for jpeg and webp. Used when quality is not specifieddpr
- number, default = 1.0. Device pixel ratio. Scales width and height by this number.image
/i
- string, default = path. The image url. Can be passed as a query parameter or as the path. This overrides the pathname if both exists.preset
/p
- string. Preset name. Any other parameters specified can overwrite the ones in the preset depending on the preset setting.thumb
- boolean. Default thumbnail preset settings. 64x64, crop. Usedpr
to scale.fallbackFormat
/ff
- png, jpeg, auto. Use this format when avif and webp is not supported.