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
- Rename the existing
timthumb.php
script located incouch/includes
totimthumb-gd.php
. - Go to line 16 of the new
timthumb.php
and replaceconvert
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. - Place
timthumb.php
in thecouch/includes
directory.