Image Proxy

This service provides on-the-fly image processing capabilities inspired by willnorris/imageproxy.

Basic Usage

https://[your-worker-domain]/[options]/[image-url]

Examples:

Available Options

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

Combining Options

Options can be combined by separating them with commas:

/w_300,h_200,c_smart,o_webp,q_90/https://example.com/image.jpg

Notes