Mediawiki uses ImageMagick Utility for resized thumbnail image. You can use it as

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

in your LocalSettings.php.

There are two reasons why ImageMagick is beneficial.

  1. It reduces loading time for image file as it stores thumbnail image separately.
  2. It gives higher quality than GD library.

However, you may encounter following error when shell memory is not allocated big enough.

Error creating thumbnail:
libgomp: Thread creation failed: Cannot allocate memory

It is due to small shell memory allocation which is handled by Mediawiki. In this case, you can simply add following in LocalSettings.php

$wgMaxShellMemory = 524288;

524288 means 512K. You can specify it as you desire. 1

 

February 2012
S M T W T F S
« Jan    
 1234
567891011
12131415161718
19202122232425
26272829  

Follow Me

© 2011 Bread & Cup Suffusion theme by Sayontan Sinha