Apply transformations like rotation, flipping, blur, sharpness, opacity, and color adjustments to optimize image display and quality.
rotate
Rotates the image as per the number of degrees provided as 0, 90, 180 or 270
flip
flip=v will vertically flip the image. flip=h will horizontally flip the image. flip=hv or flip=vh will flip both horizontally and vertically.
blur
Applies a Gaussian blur of a given blur radius in float. blur=2.5 will blur the image by taking a Gaussian blur of 2.5 pixel radius. Valid values are between 0 and 100.
| blur=10 | original |
|---|---|
![]() | ![]() |
threshold
Any pixel value greather than or equal to the threshold value will be set to 255, otherwise it will be set to 0. The parameter should be integer between 0 and 255.
| threshold=100 | original |
|---|---|
![]() | ![]() |
opacity (o)
You can change image opacity by using this parameter. The value can be between 0 and 100. 0 being fully transparent and 100 being most opaque. The default value is undefined
For JPEG output, the image will be put on white background as it's default value for background parameter. You can always specify different value for background parameter along with opacity.
| opacity=50 | opacity=50&bg=ff0000 | original |
|---|---|---|
![]() | ![]() | ![]() |
gamma (gam)
Apply a gamma correction by reducing the encoding (darken) pre-resize at a factor of 1/gamma then increasing the encoding (brighten) post-resize at a factor of gamma. This can improve the perceived brightness of a resized image in non-linear color spaces. JPEG and WebP input images will not benefit from the shrink-on-load performance optimization when applying a gamma correction.
Valid value is between 1.0 and 3.0. Default is 2.2
contrast (con)
Adjust the contrast of the image. Valid values are between -100 to 100. Default value is 1.
sharp
Sharpen the image. This operation performs an accurate sharpen of the L channel in the LAB color space. Valid values are between 0 and 100.
| sharp=10 | original |
|---|---|
![]() | ![]() |
Summary of Image Operations
| Parameter | Action | Default Value | Range / Allowed Values |
|---|---|---|---|
rotate | Rotates the image by specified degrees. | N/A | 0, 90, 180, 270 |
flip | Flips the image horizontally, vertically, or both. | N/A | v (vertical), h (horizontal), hv / vh (both) |
blur | Applies Gaussian blur with a specified pixel radius float. | N/A | 0 to 100 |
threshold | Sets pixels greater than or equal to threshold to 255, and others to 0. | N/A | 0 to 255 (Integer) |
opacity (o) | Adjusts image opacity (0 is fully transparent, 100 is fully opaque). | Undefined | 0 to 100 |
gamma (gam) | Applies gamma correction to improve perceived brightness in non-linear color spaces. | 2.2 | 1.0 to 3.0 |
contrast (con) | Adjusts the overall contrast of the image. | 1 | -100 to 100 |
sharp | Sharpens the image (specifically the L channel in LAB color space). | N/A | 0 to 100 |









