Saturate
Color saturation correction
Last updated
Color saturation correction
Last updated
Copyright © 2023 Scaleflex
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
Preview | Syntax |
---|---|
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.
Preview | Syntax |
---|---|
Original image: /sample.li/frog.png?w=400
Increased saturation: /sample.li/frog.png?w=400&saturate=35
Desaturation: /sample.li/frog.png?w=400&saturate=-100
Grayscale: /sample.li/frog.png?w=400&gray=1