Page 1 of 1

Convert.exe -mattecolor Error 2245

Posted: 2017-02-15T18:24:41-07:00
by faucet
Hi all,

I'm trying to run convert.exe from the commmand line on version 7.0.4-9 Q16 x64 of ImageMagick. The input is from a php script:

exec($convert . ' -size 16x430 gradient: ' . $pal . ' -clut -mattecolor ' . $font_color . ' -frame 1x1 -set colorspace rgb -mattecolor gray -frame 1x1 "gradient.png"');

but I run into the following error:

convert.exe: unrecognized option '-mattecolor' @ error/convert.c/ConvertImageCommand/2245

Has anybody run into this before or have any suggestions for fixing this?

Thanks!
Michael

Re: Convert.exe -mattecolor Error 2245

Posted: 2017-02-15T19:19:06-07:00
by fmw42
-mattecolor is replaced by -alpha-color in IM 7. However, I do not see that documented in the porting guide at http://imagemagick.org/script/porting.php#cli

But see http://www.imagemagick.org/script/comma ... mattecolor

Re: Convert.exe -mattecolor Error 2245

Posted: 2017-02-16T10:43:29-07:00
by faucet
Awesome, that worked. Thanks!

Re: Convert.exe -mattecolor Error 2245

Posted: 2017-02-16T14:15:47-07:00
by fmw42
-mattecolor will be re-introduced in IM 7.0.4.10 and replace -alpha-color