ImageMagick's "convert" tool generates larger size file when run on specific "PNG" file.

Solution Unverified - Updated -

Issue

  • PNG files are ending up larger than the original when converting using convert 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content