Convert.exe -mattecolor Error 2245

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
faucet
Posts: 2
Joined: 2017-02-15T18:15:06-07:00
Authentication code: 1151

Convert.exe -mattecolor Error 2245

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert.exe -mattecolor Error 2245

Post 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
faucet
Posts: 2
Joined: 2017-02-15T18:15:06-07:00
Authentication code: 1151

Re: Convert.exe -mattecolor Error 2245

Post by faucet »

Awesome, that worked. Thanks!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert.exe -mattecolor Error 2245

Post by fmw42 »

-mattecolor will be re-introduced in IM 7.0.4.10 and replace -alpha-color
Post Reply