Manual:$wgTiffThumbnailType/zh

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
<translate> Thumbnail settings</translate>: $wgTiffThumbnailType
要将 TIFF 图像转换为的格式和 MIME 类型。
<translate> Introduced in version:</translate>1.15.0 (r48462)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(包含 2 个条目的数组)
<translate> Default value:</translate>[] (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' );