Overlay PNG over JPEG - problem with opacity

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
willwin

Overlay PNG over JPEG - problem with opacity

Post by willwin »

Hi!

Let's start directly with an example: Image

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: Image

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.
willwin

Re: Overlay PNG over JPEG - problem with opacity

Post by willwin »

problem solved:)
Post Reply