Output format selection not obeyed

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
mheiskan
Posts: 1
Joined: 2015-04-30T06:00:10-07:00
Authentication code: 6789

Output format selection not obeyed

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

Re: Output format selection not obeyed

Post 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.
Post Reply