Manual:$wgUseImageMagick/zh

Category:MediaWiki configuration settings/zh#UseImageMagickCategory:MediaWiki configuration settings introduced in version 1.2.0/zh#UseImageMagickCategory:MediaWiki configuration settings still in use/zh#UseImageMagickCategory:ImageMagick variables/zh#UseImageMagick
ImageMagick: $wgUseImageMagick
Set to true to use ImageMagick for image resizing.
引进版本:1.2.0
移除版本:仍在使用
允许的值:(布尔值)
false

细节

Resizing can be done using PHP's internal image libraries, or using ImageMagick or another third-party converter, e.g. GraphicMagick. These latter converters support more file formats than PHP, which only supports PNG, GIF, JPG, XBM and WBMP. Set $wgUseImageMagick to true to use ImageMagick instead of the builtin functions.

For more information on how to set up ImageMagick, see Manual:Image administration#Image thumbnailing.

You may also need to set $wgImageMagickConvertCommand to be able to use ImageMagick, although this is sometimes done automatically by the installer.

To fine-tune the output of ImageMagick, set $wgSharpenParameter and $wgSharpenReductionThreshold.

$wgJpegPixelFormat sets YUV chroma subsampling mode for JPEG thumbnails to reduce file size.

Some old MediaWiki installations may have $wgUseImageResize set to false. ImageMagick requires that this setting be set to true, or else it will not work.

参见

Category:ImageMagick variables/zh Category:MediaWiki configuration settings/zh Category:MediaWiki configuration settings introduced in version 1.2.0/zh Category:MediaWiki configuration settings still in use/zh