Possible bug with -compose Dst-Out -composite
Posted: 2019-01-11T08:10:34-07:00
Version: ImageMagick 7.0.8-16 Q16 x86_64 2018-12-10 https://imagemagick.org
MacOS 10.12.6
Command:
Expected result: A white background with a transparent circular cut-out in the middle.
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.
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.