I'm trying to use PHP/Imagick api to implement the effect that the convert command (with ImageMagick) does. For convenience, I have simplified my question as this:
The result I want to achieve is this:
convert one.jpg two.jpg three.jpg -compose blend -define compose:args=100,0 -composite result.jpg
While in the PHP/Imagick api, I can only find the Imagick::compositeImage() function that can only do composite one by one, but not three images together. I have tried to do it firstly composite one.jpg with two.jpg, and then use the temporary result to composite with three.jpg. It turns out that the result is not the same with that of the convert command.
So how can I achieve the effect in result.jpg with the PHP/Imagick api?
Thanks. Any idea is appreciated.