Page 1 of 1

Different results for png on different environments.

Posted: 2015-10-28T01:32:14-07:00
by KPeters89
Hello,

I am seeing some strange behaviour with imagick used with PHP on our environments.
I am running exactly the same code on localhost and our production environment. On localhost the size of the produced png file is around 700kb, while on production with the same code and the same file it's 3MB.

Is this something that could be blamed on the ImageMagick version on our server?

Localhost is running the following:
Version: ImageMagick 6.9.0-10 Q16 x86_64 2015-03-09 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: DPC Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png xml zli

Production is running:
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP

I don't have much knowledge of the installation or features itself so I'm just trying to figure out what's causing the issue.

Thanks for reading!

Re: Different results for png on different environments.

Posted: 2015-10-28T01:49:25-07:00
by snibgo
The different versions are probably using different compression methods.

v6.7.7 is very old, and will have other differences that affect the images made. I suggest you upgrade, so the same version is used in both environments.

Re: Different results for png on different environments.

Posted: 2015-10-28T01:50:26-07:00
by KPeters89
Okay thanks, I will ask our lead dev to upgrade :)

Re: Different results for png on different environments.

Posted: 2015-10-28T09:31:08-07:00
by fmw42
Could be due to different versions of libpng, also. So be sure to use the same versions of libpng as well as Imagemagick