MacOS 10.12.6
Command:
Code: Select all
magick -size "120x120" xc:white \( -size "120x120" xc:none -fill black -draw "circle 60,60 60,10" \) -alpha Set -compose Dst-Out -composite round_mask.png
Actual result: A white background with a transparent circular cut-out in the middle bordered with semi-transparent black:
Came across this in a few iterations. I can't shake the semi-transparent black border when trying to use a simple shape as a mask to cut out a background. The example I presented is the bare-bones version. I'd be happy to learn I'm doing something wrong. This is based on the example from https://www.imagemagick.org/Usage/compose/#dstout. I still get the semi-transparent background even with a straight copy-paste from the last example given.