Manual:$wgCustomConvertCommand

From MediaWiki.org

Jump to: navigation, search
Images: $wgCustomConvertCommand
Use another resizing converter, e.g. GraphicMagick.
Introduced in version: 1.6.0 (r13244)
Removed in version: still in use
Allowed Values: string or false
Default Value: false

Other settings: Alphabetical | By Function


[edit] Details

To use another resizing converter, e.g. GraphicMagick, set this variable to the command-line string required to launch the executable. If no string is specified then MediaWiki's internal resizing code will be used.

In the command-line string, the following variables will be expanded:

  •  %s will be replaced with the source path
  •  %d will be replaced with the destination
  •  %w will be replaced with the width
  •  %h will be replaced with the height

For example, here is the command you would set for GraphicMagick:

  $wgCustomConvertCommand = "gm convert %s -resize %wx%h %d";