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.
Output format selection not obeyed
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Output format selection not obeyed
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.