Page 1 of 1

PNG is 7 times larger on 6.3.7 than on 6.6.3

Posted: 2010-10-14T10:01:28-07:00
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.

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

Posted: 2010-10-14T10:14:50-07:00
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

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

Posted: 2010-10-14T10:45:01-07:00
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!

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

Posted: 2010-10-14T12:24:24-07:00
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.