Let's start directly with an example:

Why is png (purple animal) is getting darken over jpeg? It's not transparent. I've tried different compose methods but couldn't find an answer

Here is that animal:

And here is the convert command
Code: Select all
/usr/bin/convert -size 200x500 xc:white \
./upload/tmp/7b01e0c6f64c342ceb01d0b80bf9ef1c.jpg -geometry 640x480-2+60 -compose Over -composite \
./upload/masks/animal/PurpGuy.png -geometry 128x128+33+6 -compose Over -composite \
-flatten ./upload/tmp/9b2ee3301d6bec43a5138f58da9b63dc-ava.jpg
Thanks in advance.