


I have this command-line which works with the above:
Code: Select all
convert -channel Alpha -compose subtract -composite circle.png square.png -write mpr:orig +delete \
-channel RGB -compose add -composite mpr:orig square.png output.png

Code: Select all
convert -channel Alpha -compose subtract -composite circle.png square.png -write mpr:orig +delete \
-channel RGB -compose add -composite mpr:orig square.png output.png
Code: Select all
convert square.png smallcircle.png -gravity center -compose CopyOpacity -composite -channel A -negate a.png