I'm using IM v6.8.0-3, and I have a case in which the outcome of multiple commands isn't the same as the output of a combined command.
I have two 300x300 images, img1.jpg and img2.png (the second with transparency). Using the following commands:
Code: Select all
convert img2.png img1.jpg -compose In -composite out.png
convert out.png -background white -extent 0x0 +matte out.jpg
Code: Select all
convert img2.png img1.jpg -compose In -composite -background white -extent 0x0 +matte out.jpg
Shouldn't the result be identical?
As a side note, what I'm trying to do is combine the two images so that wherever the PNG is transparent would be white, and everywhere else would be the content of the JPG. Any idea how to do this other than the way I'm doing it?
Thanks,
Yoav