PDA

View Full Version : Using ImageMagick in Mediawiki



Pieter Gebraad
01-03-2007, 03:14 AM
Hi all,

I have installed mediawiki on a subdomain of my account. I am trying to use the thumbnailing feature of mediawiki. I need to refer to ImageMagick to do this.

The support center says

ImageMagick is already installed for PHP on all servers and can be accessed by the path /usr/bin/convert. We are currently running version 6.0.7.

I have changed Localsettings.php:


## To enable image uploads, make sure the 'images' directory
## is writable, then uncomment this:
$wgEnableUploads = true;
$wgUseImageResize = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert/";

It doesn't work. Is this because I installed mediawiki on a subdomain?

How can i fix this?

Thanks,
Pieter

Pethens
01-03-2007, 12:23 PM
Look like you have an extra slash there:


$wgImageMagickConvertCommand = "/usr/bin/convert/";

Change it to this:


$wgImageMagickConvertCommand = "/usr/bin/convert";

... and see if that works for you

Pieter Gebraad
01-03-2007, 01:24 PM
Ok, i changed that, but didn't work. Then i did some investigating and found out that i have to chmod 777 the image/thumb/ directory to get it working.