Thumbnail settings: $wgTiffThumbnailType | |
---|---|
The format and MIME type to convert TIFF images to. |
|
Introduced in version: | 1.15.0 (r48462) |
Removed in version: | still in use |
Allowed values: | (Array with 2 entries) |
Default value: | [] (1.34+)false (1.15-1.33) |
Other settings: Alphabetical | By function |
Details
Array of file extension and MIME type to convert TIFF images to when sending them for inline display in web pages. 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.
Examples
// <translate nowrap><!--T:9--> PNG is lossless, but inefficient for photos</translate>
$wgTiffThumbnailType = array( 'png', 'image/png' );
// <translate nowrap><!--T:10--> JPEG is good for photos, but has no transparency support.</translate> <translate nowrap><!--T:11--> Bad for diagrams.</translate>
$wgTiffThumbnailType = array( 'jpg', 'image/jpeg' );
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.