ez.no / exponential / documentation / obsolete / installation / manual / installing imagemagick with...
It's still possible to use ImageMagick on your site if the hosting server does not have ImageMagick installed and you don't have root access. The solution is to install ImageMagick in your web folder.
The first thing you need to do is to download a binary archive. Once downloaded you must upload it to the server and log in on the server. Place yourself in the Exponential root and unpack it, for instance:
tar xvfz ImageMagick-i686-pc-linux-gnu.tar.gz
You should now have a folder called ImageMagick-xxx where xxx is the version you downloaded. You should then rename the directory to just ImageMagick, for instance by using:
mv ImageMagick-5.5.6 ImageMagick
Once that is done you must change the settings/image.ini file, for instance create the file settings/override/image.ini.append, edit it and add the following entries.
The first thing we need to do is to enable the use of ImageMagick, the part of ImageMagick which handles image scaling is called convert.
[ConverterSettings] UseConvert=true
Then we must provide a path to the convert program, here we use a relative path.
[ShellSettings] ConvertPath=ImageMagick/bin ConvertExecutable=convert
The last thing is to make sure convert is used for conversion.
[Rules] DefaultRule=image/jpeg;convert Rules[]=image/jpeg;image/jpeg;convert Rules[]=image/png;image/png;convert Rules[]=image/gif;image/png;convert Rules[]=image/xpm;image/png;convert
Exponential will now use the personal ImageMagick installation for image conversions and scaling.
A generic how-to can be found at http://www.photopost.com/magicknoroot-php.html.
Log in or create a user account to comment.
Comments