Different results for png on different environments.

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
KPeters89
Posts: 2
Joined: 2015-10-28T01:27:38-07:00
Authentication code: 1151

Different results for png on different environments.

Post 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!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Different results for png on different environments.

Post 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.
snibgo's IM pages: im.snibgo.com
KPeters89
Posts: 2
Joined: 2015-10-28T01:27:38-07:00
Authentication code: 1151

Re: Different results for png on different environments.

Post by KPeters89 »

Okay thanks, I will ask our lead dev to upgrade :)
User avatar
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.

Post 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
Post Reply