Paste an image without it's transparency.
Posted: 2013-12-21T05:45:17-07:00
I've searched the fora for a way to paste one image onto another and in this thread viewtopic.php?f=1&t=23858 I found:
Which works except the transparency of the "foregroundimage" gets copied as well. Meaning part of the non-transparent area of the "backgroundimage" has now become semi-transparent. (transparency getting averaged it seems).
How can I copy the foregroundimage while keeping non-transparent parts of the backgroundimage non-transparent?
I use ImageMagick-6.8.4-10-Q16-x86-windows and all images are pngs made using
Code: Select all
convert backgroundimage foregroundimage -gravity center -compose over -composite resultimage
How can I copy the foregroundimage while keeping non-transparent parts of the backgroundimage non-transparent?
I use ImageMagick-6.8.4-10-Q16-x86-windows and all images are pngs made using
Code: Select all
convert input.bmp mask.bmp -compose CopyOpacity -composite result.png