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