Quote from: jgrant at Jan 30, 2014, 02:35 AMQuote from: rx2 at Jan 30, 2014, 01:58 AMWill investigate not scaling up by default as one server seems to be doing just that while the other isn't, though the one that isn't is a Vapor image of the one that is, with different content.
Besides the content, I can see at least one setting is different between the two sites: you have pThumb Cache set to No on the first site and Yes on the second. This shouldn't have any effect on the dimensions of the images, but it does mean the settings on the two sites aren't identical; maybe there are more differences?
I'd check:
- Input image dimensions. If you have nice high-res input images on the first site, but undersized temp images on the 2nd, this could easily be the cause of what you're seeing (i.e. the first site is scaling down, the 2nd site isn't scaling up — two different things).
- The value of phpthumb_far (System Settings > core > phpThumb)
- The lower-level software which is actually doing the resize. The MODX Cloud site should be using ImageMagick, the other site could be using GD. There are a few possible differences in phpThumb's behavior depending on which one it's using. Turn on debug for pThumb, clear the thumbnails from the cache (to force generation of new ones), and check the MODX error log to see.
The Cache settings were just me playing. I will make sure they are both identical.
Exact same images are used so there is no difference in resolution/dimensions for the source images.
The value of far is C in both.
Lower level, as Susan also mentions, is, I believe, the key (ImageMagick is on both as well as GD). I never thought there was a problem with pThumb, just wanted to understand the differences in the servers that result in the different behaviour of the same code. But the solution of different versions of ImageMagick reporting differently involves changing some code so we'll probably go with production images that are at or above the needed resolutions. Besides, both servers are using the same version of ImageMagick.
MODX Cloud
Module Version (ImageMagick): 3.1.2
ImageMagick 6.5.4-7 2012-04-10 Q16 OpenMP
http://www.imagemagick.org
GD Version: bundled (2.1.0 compatible)
Other Server
Module Version (ImageMagick): 3.1.2
ImageMagick 6.5.4-7 2012-05-07 Q16 OpenMP
http://www.imagemagick.org
GD Version: bundled (2.0.34 compatible)
So there is a difference in GD versions.
Quote from: sottwellThere are also server issues, the link I posted above mentions differences in ImageMagick versions as to how it reports itself (older versions without a -, newer versions with - depending on which version of phpThumb your MODX installation is using this may or may not be a problem), and whether or not the server is configured to allow exec(), since ImageMagick uses it.
I will check if it is enabled.