ImageMagick's "convert" tool generates larger size file when run on specific "PNG" file.
Issue
PNGfiles are ending up larger than the original when converting usingconvertcommand.- 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
