I executed the following in console (cygwin x64) in Windows
magick convert -verbose difference.png -fuzz 7% -draw 'matte 1,1 floodfill' test.png
difference.png PNG 216x107 216x107+0+0 8-bit Gray 11167B 0.000u 0:00.002
difference.png=>test.png PNG 216x107 216x107+0+0 8-bit Gray 8737B 0.078u 0:00.077
However, I got the following error:
convert: non-conforming drawing primitive definition `matte' @ error/draw.c/DrawImage/3284.
Please mention on how I can correct this error.
The drawing primitive matte
was replaced by alpha
in ImageMagick 7. From Porting to ImageMagick Version 7 article.
The DrawMatte() method is now called DrawAlpha().
As Mark Setchell pointed out in the comments, replacing matte
with alpha
should work as expected.
magick convert -verbose difference.png -fuzz 7% -draw 'alpha 1,1 floodfill' test.png
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With