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:

By default, the image is desaturated first:
/samples.scaleflex.com/mountains.jpg?w=400&duotone=000080,ffff00

If you prefer, you can convert to grayscale instead:
/samples.scaleflex.com/mountains.jpg?w=400&duotone=000080,ffff00&gray=1

60% opacity (0.6) of the filter:
/samples.scaleflex.com/mountains.jpg?w=400&duotone=000080,ffff00,0.6
Last updated
Was this helpful?

