Page 1 of 1

Output format selection not obeyed

Posted: 2015-04-30T19:46:59-07:00
by mheiskan
In RHEL6 ImageMagick version 6.5.4 this works:

convert -transparent black image.png png32:image.png

In RHEL7 ImageMagick version 6.7.8 the same no longer works, and you have to do two steps to accomplish the same effect:

convert -transparent black image.png image.png
convert image.png png32:image.png

In the RHEL7 version convert in our case convert produced a palette PNG despite the png32 selection.

Re: Output format selection not obeyed

Posted: 2015-04-30T20:22:04-07:00
by fmw42
convert -transparent black image.png image.png

Syntax is now different. Try putting the operator after the input image.

Code: Select all

convert image.png -transparent black image.png

See http://www.imagemagick.org/Usage/basics/#why


If that does not work, then that version has a bug and you should probably upgrade to a current version. Version 6.7.8 is over 130 versions old and major changes were going on around that time.