Help:Image thumbnailing

From lensowiki
Jump to: navigation, search

  <-Help:Contents

MediaWiki's extended image syntax allows images to be automatically thumbnailed.

Image thumbnailing requires either ImageMagick or GD library. ImageMagick is recommended since it produces better quality thumbnails than GD library. It can be downloaded from imagemagick.org. Neither of these are part of the default MediaWiki installation but MediaWiki can be installed without this function.

To enable image thumbnailing, set $wgUseImageResize and $wgUseImageMagick to true in LocalSettings.php. Make sure the wgImageMagickConvertCommand variable points to the proper location of the convert command of your installation and that the command is executable by the web server process.

If both ImageMagick and GD library are installed, MediaWiki will use GD library. To change this, edit LocalSettings.php after installation and change $wgImageMagickConvertCommand from "/usr/bin/convert"; to "/usr/local/bin/convert";.

  • This is incorrect. `which convert` shows only /usr/bin/convert, therfore this would force the use of the GD library as ImageMagick would no longer be found. What if someone compiled ImageMagick themselves and did have a /usr/local/bin/convert ??? This is really inconsistent. -- Corwin
    • Perhaps it would be the most easiest way to put the image magick folder (the location of the file convert) in path variable of windows or linux and then change it only to "convert" in Localsettings.php, so it doesnt make any problems in future.

See also: Help:Images and other uploaded files