Image Operations

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=10original
blur=10original

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=100original
threshold=100original

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=50opacity=50&bg=ff0000original
opacity=50opacity=50&bg=ff0000original

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=10original
sharp=10original

Summary of Image Operations

ParameterActionDefault ValueRange / Allowed Values
rotateRotates the image by specified degrees.N/A0, 90, 180, 270
flipFlips the image horizontally, vertically, or both.N/Av (vertical), h (horizontal), hv / vh (both)
blurApplies Gaussian blur with a specified pixel radius float.N/A0 to 100
thresholdSets pixels greater than or equal to threshold to 255, and others to 0.N/A0 to 255 (Integer)
opacity (o)Adjusts image opacity (0 is fully transparent, 100 is fully opaque).Undefined0 to 100
gamma (gam)Applies gamma correction to improve perceived brightness in non-linear color spaces.2.21.0 to 3.0
contrast (con)Adjusts the overall contrast of the image.1-100 to 100
sharpSharpens the image (specifically the L channel in LAB color space).N/A0 to 100