All pages
Powered by GitBook
1 of 1

Loading...

Saturate

Color saturation correction

To adjust the color saturation, you can use the saturate=X filter and set the desired adjustment value (X= -100..100). Negative values will decrease color saturation while positive ones will increase it.

saturate=X

Examples

Preview
Syntax

Desaturate

Using saturate=-100 will remove all color information and convert the image to grayscale.

Please keep in mind that desaturating an image just discards all color information. If you prefer to create a grayscale image while taking into account the human visual system's color perception, you should use the gray parameter instead.

Examples

Preview
Syntax

Original image: /samples.scaleflex.com/frog.png?w=400

Increased saturation: /samples.scaleflex.com/frog.png?w=400&saturate=35

Desaturation: /samples.scaleflex.com/frog.png?w=400&saturate=-100

Grayscale: /samples.scaleflex.com/frog.png?w=400&gray=1