http://localhost:4000/image
/resize:200:200
/quality:40
/greyscale
/url/https://.../my-image-1.jpg
@avif
http://localhost:4000/image
/blur:80
/resize:200
/url/https://.../my-image-2.jpg
@webp
Based on node-file-router and sharp.
- Resize
- Compress
- Change format
- Greyscale
- Tint
- Blur
Caching is not implemented. It's expected that it will be on cloud-side.
- Install dependencies:
pnpm install
- Run a script:
pnpm dev
- Open
localhost:4000
Several working examples can be found in examples.html