Page 1 of 1

-draw "matte 1,1 floodfill"

Posted: 2019-04-05T04:51:16-07:00
by Marcel71
Hi guys,

I am using version 7.0.8-37 on Ubuntu.

When i use the following command an error occurs:

Code: Select all

convert rose: -fill none -draw "matte 1,1 floodfill" out.png
It is a code example from: http://www.imagemagick.org/Usage/draw/#matte

The error i get is:
convert: non-conforming drawing primitive definition `1' @ error/draw.c/RenderMVGContent/4407.

Could you guys have a look at this?

Regards,
Marcel

Re: -draw "matte 1,1 floodfill"

Posted: 2019-04-05T06:33:24-07:00
by magick
ImageMagick 7 uses "alpha" rather than "matte". See Changed Options @ https://www.imagemagick.org/script/porting.php.

Re: -draw "matte 1,1 floodfill"

Posted: 2019-04-05T09:31:09-07:00
by fmw42
For IM 7, use magick not convert and not magick convert.

Code: Select all

magick rose: -fill none -draw "alpha 1,1 floodfill" out.png

Re: -draw "matte 1,1 floodfill"

Posted: 2019-04-05T10:12:27-07:00
by Marcel71
Thanks, that worked indeed :)

Will you have an examples site like: https://imagemagick.org/Usage/ for version 7?
I always found that one very usefull throughtout the years. :)

Regards,
Marcel

Re: -draw "matte 1,1 floodfill"

Posted: 2019-04-05T10:14:24-07:00
by fmw42
It is mostly the same, except for convert -> magick for IM 7. So not likely a new version for IM 7.

See also https://imagemagick.org/script/porting.php#cli