I want to combine two images, one of which is a pattern image and another is color mask.
My problem is the color I get does not match the one I want to receive.
This is my "pattern image" $image:
I then use
$image->compositeImage($ribbon, Imagick::COMPOSITE_COLORBURN, 0, 0);
to combine it with 'color' image
I am expecting the output similar to this:
but what I get is:
The lighter and darker areas come from pattern image, but in general this different color than I would expect. I also tried every other option, including Imagick::COMPOSITE_HARDLIGHT
, Imagick::COMPOSITE_OVERLAY
etc.
What do I miss here? Maybe I need to make some preparation for $image first? Or use different method of merging images together?
UPD:
If I use COMPOSITE_COLORIZE I also don't get the color I need, but much lighter instead