PNG is 7 times larger on 6.3.7 than on 6.6.3

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
strangeelement

PNG is 7 times larger on 6.3.7 than on 6.6.3

Post by strangeelement »

When I save images as PNGs on my web server (which has 6.3.7), they are approximately 7 times heavier than on my workstation using ImageMagick 6.6.3.

This is my command:

Code: Select all

convert "img/fr/card.png" -resize x598 -gravity center -crop 460x+0+0 -quality 85 +repage -sharpen 0x1 "cache/medias/460X/img/fr/card.png_center.1286755661.png"
The original "img/fr/card.png" is a 716x932 PNG that weighs 209,1Kb.

On my workstation, when I resize to a 460x598 PNG, it weighs 119,7 Kb. The workstation is Ubuntu 10.10, with ImageMagick 6.6.3.

On the webserver (DreamHost), the same 460x598 PNG weighs over 750Kb. The server is Debian 5.0.6, with ImageMagick 6.3.7.
immortal26

Re: PNG is 7 times larger on 6.3.7 than on 6.6.3

Post by immortal26 »

I believe that to be an issue with 6.3.7
I know DreamHost is a hassle to work with, but are you on a private server or shared?
As in is there anyway to update it through DreamHost.

Source: http://stackoverflow.com/questions/1492 ... -file-size
strangeelement

Re: PNG is 7 times larger on 6.3.7 than on 6.6.3

Post by strangeelement »

Ah well... bummer.

Actually I found DH very pleasant to work with so far.

I will check with them and likely compile a version for myself meanwhile.

Thanks!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PNG is 7 times larger on 6.3.7 than on 6.6.3

Post by fmw42 »

Is it possible that you have one version at Q16 and the other at Q8.

identify -version

will tell you what your current release is on each system and the Q level -- Q16 makes 16-bit per channel png and Q8 will make 8-bit per channel png.

On the system that makes the larger image, try adding -depth 8 and see if that helps.
Post Reply