This service provides on-the-fly image processing capabilities inspired by willnorris/imageproxy.
https://[your-worker-domain]/[options]/[image-url]
/300/https://example.com/image.jpg/300x200/https://example.com/image.jpg/c_square,w_300/https://example.com/image.jpg/o_webp/https://example.com/image.jpg/r_90/https://example.com/image.jpg| Option | Shorthand | Description | Example |
|---|---|---|---|
| width | w | Width in pixels | width_300 or w_300 |
| height | h | Height in pixels | height_200 or h_200 |
| crop | c | Crop mode: smart, square, fit | crop_smart or c_square |
| rotate | r | Rotation angle in degrees | rotate_90 or r_90 |
| flip | f | Flip direction: h (horizontal), v (vertical) | flip_h or f_v |
| format | o | Output format: jpeg, png, webp, avif | format_webp or o_webp |
| quality | q | Image quality (1-100) | quality_85 or q_85 |
Options can be combined by separating them with commas:
/w_300,h_200,c_smart,o_webp,q_90/https://example.com/image.jpg