Page 1 of 1

PNG compression?

Posted: 2006-10-04T21:03:59-07:00
by norfstar
I've just moved a site from a shared hosting environment to a dedicated server, on which I have installed ImageMagick.

Unfortunately, the PNG images created on the new installation seem to have a much larger file size - what was 150KB on the previous server is now being produced at about 500KB.

The file is created using convert. The version of ImageMagick is 6.2.9. The version of libpng is 1.2.12. Can anyone suggest what needs to be done to be producing smaller file-sized PNGs as before?

Posted: 2006-10-05T00:57:56-07:00
by magick
Add -strip to your command line to remove the image profiles. See if that reduces your PNG image size to something reasonable.

Re: PNG compression?

Posted: 2006-10-05T04:13:42-07:00
by glennrp
norfstar wrote: I've just moved a site from a shared hosting environment to a dedicated server, on which I have installed ImageMagick.

Unfortunately, the PNG images created on the new installation seem to have a much larger file size - what was 150KB on the previous server is now being produced at about 500KB.

The file is created using convert. The version of ImageMagick is 6.2.9. The version of libpng is 1.2.12. Can anyone suggest what needs to be done to be producing smaller file-sized PNGs as before?


Cqn you provide a sample image as converted on both systems? Give a URL or email them to glennrp at gmail.com

Posted: 2006-10-05T19:43:01-07:00
by norfstar
Thanks for the suggestion magick - unfortunately it doesn't seem to have had any effect.

Here are two example images:

http://www.nordev.co.uk/old.png (88k)

http://www.nordev.co.uk/new.png (285k)

Posted: 2006-10-05T22:34:03-07:00
by glennrp
"old.png" is 8-bit
"new.png" is 16-bit

Try using "-depth 8" option or installing the Q8 version of ImageMagick.

Glenn

Posted: 2006-10-06T00:34:26-07:00
by norfstar
glennrp wrote: Try using "-depth 8" option


Thanks Glenn - all is working as intended now :D.