Image Manipulation in an Debian Environment: ImageMagick

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Zappu

Image Manipulation in an Debian Environment: ImageMagick

Post 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?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Image Manipulation in an Debian Environment: ImageMagick

Post 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?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Image Manipulation in an Debian Environment: ImageMagick

Post 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.
Zappu

Re: Image Manipulation in an Debian Environment: ImageMagick

Post 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
NomadSoul
Forum Members
Forum Members
Posts: 24
Joined: Tue Jul 25, 2006 12:45 am

Re: Image Manipulation in an Debian Environment: ImageMagick

Post 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

Code: Select all

apt-get install imagemagick

Code: Select all

apt-get install php4-imagick
- then, reload Apache;

Code: Select all

/etc/init.d/apache2 reload
- 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/';
Locked

Return to “CMSMS Core”