I'm trying to make a gradient blending effect of two images (or more). But the problem is that my images have transparency.
I want to blend these two pictures so that the red one will be on the left, and the blue one on the right, with a gradient blending effect.
Until now, I used to apply a gradient mask on the blue one, for example this :
Blue image mask
... and put it atop the red one. This works perfectly for photos, but when the images have transparency, i got this :
So here we can see the gradient blending of the blue image, but we can see the red one through the transparent blue border. :(
I can't find a solution to make a good gradient blending effect that works on transparent images. I'm using imagemagick (with PHP), but I can't find the solution even on Gimp or Photoshop...
Do you know a good method to do that ?
Thanks !