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!
Different results for png on different environments.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Different results for png on different environments.
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.
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.
snibgo's IM pages: im.snibgo.com
Re: Different results for png on different environments.
Okay thanks, I will ask our lead dev to upgrade
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Different results for png on different environments.
Could be due to different versions of libpng, also. So be sure to use the same versions of libpng as well as Imagemagick