Improving Thumbnail Quality in 4Images

[Note: The following post is pretty esoteric and specific and is really meant to be a resource for someone looking for an answer to this problem in the future. If you've just dropped in to browse, feel free to read it if you want, but I think you'd be better off with the back of a cereal box.]

If your webhost has provided you with the 4Images image gallery management system, but didn't provide you with much documentation on configuring or troubleshooting it...join the club. I have a client who is using GoDaddy.com as a webhost and while the price and features are compelling, userguides are non-existent.

GoDaddy's setup requires that the GD Graphics Library be used to automatically generate thumbnail images of uploaded photos. However, the default configuration of 4Images can result in extremely low-quality thumbnail images when coupled with GD. If you're having this problem, the solution is, thankfully, quite simple.

To correct it, FTP into your account and download the following file from the 4Images directory that was created when the package was installed (it's called "forimages" in my example; it might be called something else in your installation):

/forimages/includes/constants.php

Open constants.php in a text editor and change define('CONVERT_IS_GD2', 0); to define('CONVERT_IS_GD2', 1);. Save and upload the file. Your thumbnails should now be much improved.

I found this tip in the 4Images help forum, which is a handy site to bookmark for future reference.

Comments
Post a comment [Take your time...we're in no hurry.]









Remember personal info?