ImageMagick's "convert" tool generates larger size file when run on specific "PNG" file.
Issue
PNG
files are ending up larger than the original when converting usingconvert
command.- Problem is not seen with all PNG files but is specific to few PNG images.
- Example:
# ll file_before_convert.png
-rw-r--r--. 1 root root 304293 Oct 21 17:04 file_before_convert.png
# /usr/bin/convert file_before_convert.png file_after_convert.png
# ll file_after_convert.png
-rw-r--r--. 1 root root 739465 Oct 21 17:05 file_after_convert.png
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- ImageMagick-6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.