手册:$wgTiffThumbnailType

From mediawiki.org
This page is a translated version of the page Manual:$wgTiffThumbnailType and the translation is 75% complete.
缩略图设置: $wgTiffThumbnailType
要将 TIFF 图像转换为的格式和 MIME 类型。
引进版本:1.15.0 (r48462)
移除版本:仍在使用
允许的值:(包含 2 个条目的数组)
默认值:[] (1.34+)
false (1.15-1.33)

细节

文件扩展名和MIME类型的数组,用于在发送TIFF 图像以在网页中内联显示时将其转换为。 By default, this is false, meaning this conversion does not occur.

Browsers don't support TIFF inline generally, so images need to be converted to an alternate format. Note scaling should work with ImageMagick, but may not with GD scaling. Will not work on images with resolution greater than 12.5 MP.


示例

// PNG 是无损的,但对照片效率低下
$wgTiffThumbnailType = array( 'png', 'image/png' );

// JPEG适用于照片,但没有透明度支持。 对图表不利。
$wgTiffThumbnailType = array( 'jpg', 'image/jpeg' );