Duotone
Duotone transform
Create a duotone effect by using duotone=C1,C2[,Y], where C1 and C2 are the colors for the duotone (hex value or color name) and Y is the opacity (Y=0..1
, default1
).
duotone=C1,C2[,Y]
Preview | Syntax |
---|---|
Original image: /docs/mountains.jpg?w=400 | |
By default, the image is desaturated first: /docs/mountains.jpg?w=400&duotone=000080,ffff00 | |
If you prefer, you can convert to grayscale instead: /docs/mountains.jpg?w=400&duotone=000080,ffff00&gray=1 | |
60% opacity (0.6) of the filter: /docs/mountains.jpg?w=400&duotone=000080,ffff00,0.6 |
Last updated