I’m not convinced this is a MODx bug, so I’ll start off with this thread to maybe get some ideas where to troubleshoot. So here’s the deal...
I’m migrating a site to a new server. The only snag I’ve come upon is how thumbnails look in the MODx browser in the manager. On the old server, they look fine, but on the new, they are distorted. Please see attached screenshots.
Old server vs
New server
While taking a closer look, I noticed the reason for the thumbs being distorted. This:
Old server on the left, new on the right
A nice white padding is added on the old server above and below the image. However, using the inspector in Chrome, I can see that the img element has set a height attribute of 60 pixels for both environments. Yet phpThumb on the new server never adds that white space, hence making the thumb look distorted.
I have
no idea why this is and what the possible cause might be. I’m not even sure where to start looking to find out why these thumbs are generated in such a different way. I’m hoping the good people of the MODx community can bring me some ideas!
MODx & server info
Old server
PHP: 5.3.6 (CGI/FastCGI)
Apache: Most likely 2.x
OS: Linux srv86 2.6.26-2-vserver-amd64 #1 SMP Tue Mar 9 23:51:13 UTC 2010 x86_64
MySQL: 5.0.51a-24+lenny5-log
MODx version: MODX Revolution 2.1.3-pl (advanced)
The GD section of phpinfo();
New server
PHP: 5.3.6 (CGI/FastCGI)
Apache: Most likely 2.x
OS: FreeBSD 8.1-RELEASE
MySQL: 5.1.43-log
MODx version: MODX Revolution 2.1.3-pl (advanced)
Notes: This server lacks a $_SERVER[’DOCUMENT_ROOT’]
The GD section of phpinfo();
System settings for phpThumb on both server are vanilla. I’ve changed nothing there.
I hope that’s all info needed. Otherwise let me know! And thanks in advance.