Page 1 of 1
Image Manipulation in an Debian Environment: ImageMagick
Posted: Mon May 22, 2006 12:13 pm
by Zappu
The standard library path in CMSMS for ImageMagic is set to /usr/bin/ImageMagick/. The only problem is, this path is not right for a Debian Server. Usually the convertion script for ImageMagic or GD is in an Debian Environment at /usr/bin/convert
But what ever I change the lib path to, the image tools will not work. Anybody has a small help here?
Re: Image Manipulation in an Debian Environment: ImageMagick
Posted: Mon May 22, 2006 12:51 pm
by tsw
strange, I run debian (sarge) servers and it works with default settings. maybe you dont have "php4-imagick - ImageMagick module for php4" installed?
Re: Image Manipulation in an Debian Environment: ImageMagick
Posted: Mon May 22, 2006 1:08 pm
by Ted
I had issues with this as well on sarge. I ended up using netpbm (apt-get install netpbm) and setting the path to /usr/bin. Worked right away.
Re: Image Manipulation in an Debian Environment: ImageMagick
Posted: Mon May 22, 2006 2:31 pm
by Zappu
Strange - yes php4-imagick is installed - I also run a few other gallery scripts lile coppermine, which are working fine, with GD and/or ImageMagick (btw, GD2 is faster than ImageMagick)
With Netpbm it's working, but not the automated thumbcreation nor the tag for imagegallery.
thx for the help
Re: Image Manipulation in an Debian Environment: ImageMagick
Posted: Tue Jul 25, 2006 1:05 am
by NomadSoul
Zappu wrote:
The standard library path in CMSMS for ImageMagic is set to /usr/bin/ImageMagick/. The only problem is, this path is not right for a Debian Server. Usually the convertion script for ImageMagic or GD is in an Debian Environment at /usr/bin/convert
Damn.. I searched for hours, and answer is in your question
Code: Select all
$config['image_transform_lib_path'] = '/usr/bin/';
...so simple! in fact "ImageManager" script needs to target '
/usr/bin/convert' (and not '/usr/lib/ImageMagick/' or '/usr/lib/ImageMagick-6.0.6/' ).
So,
- on a Debian Sarge stable 3.1, you need ton install packages
ImageMagick and
php4-imagick
- then, reload Apache;
- clear CMSMS cache.
- that's it.
(to find all files and the right path I wrote:
dpkg -L imagemagick )
- extract of my CMSMS config file:
/* Possible values: 'GD', 'IM', or 'NetPBM'
The image manipulation library to use, either GD or ImageMagick or NetPBM.
If you have safe mode ON, or don't have the binaries to other packages,
your choice is 'GD' only. Other packages require Safe Mode to be off.
*/
$config['image_manipulation_prog'] = 'IM';
$config['image_transform_lib_path'] = '/usr/bin/';