/CouchCMS-ImageMagick-Resizer

An image resizer replacement script for CouchCMS using ImageMagick

Primary LanguagePHP

CouchCMS ImageMagick Resizer

This is a replacement for the default TimThumb image resizer script. The excellent ImageMagick engine is used (binary - not Imagick PHP Library), resulting in higher quality resized images (compared to the GD Graphics Library).

Requirements

Your host must have a recent version of ImageMagick installed and allow PHP's exec function. This script works fully with ImageMagick 6.4.8 and later. Compatibility may extend to earlier versions but has not been tested.

Installation

  1. Rename the existing timthumb.php script located in couch/includes to timthumb-gd.php.
  2. Go to line 16 of the new timthumb.php and replace convert with the location of your host's ImageMagick convert binary. This may be /usr/bin/convert, /usr/local/bin/convert, or something else… Contact your host for clarification.
  3. Place timthumb.php in the couch/includes directory.