GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing www.mediawiki.org — Extension:PagedTiffHandler - MediaWiki
The PagedTiffHandler extension allows to upload and display tiff-files into your wiki. It can handle multi-paged images and render them into thumbnails on per page basis. UsageYou can embed images using standard image syntax. Additionally, there are two new parameters:
Pre-requisitesRequired
Type the following in your shell to see if you have the above installed first: which identify
Required (optionally)
Type the following in your shell to see if you have the above installed first: which exiv2 tiffinfo For additional performance on very large TIFF files, you might want to install and configure the VipsScaler extension.
Installation
ConfigurationPagedTiffHandler depends on various external programs in order to process Tiff images.
Example configuration: // Path to identify $wgImageMagickIdentifyCommand = '/usr/bin/identify'; // Use exiv2? if false, MediaWiki's internal EXIF parser will be used $wgTiffUseExiv = false; // Path to exiv2 (MediaWiki core configuration option) $wgExiv2Command = '/usr/bin/exiv2'; // Use tiffinfo? if false, ImageMagick's identify command will be used $wgTiffUseTiffinfo = false; // Path to tiffinfo $wgTiffTiffinfoCommand = '/usr/bin/tiffinfo'; When thumbnailing very large images to very small sizes, it can be better to downscale to an intermediary size first, instead of resizing in one go. By default PagedTiffHandler will downsize images larger than $wgTiffIntermediaryScaleStep (2048 pixels wide by default) first to $wgTiffIntermediaryScaleStep before downsizing to even smaller dimensions. Example configuration: // For thumbnails smaller than this, first scale to this amount // Set to 0 to disable $wgTiffIntermediaryScaleStep = 2048; PagedTiffHandler rejects images based on error messages of ImageMagick or tiffinfo. There are three options:
Example configuration (all of the parameters show the default configuration): $wgTiffIdentifyRejectMessages = [ '/^identify: Compression algorithm does not support random access/', '/^identify: Old-style LZW codes, convert file/', '/^identify: Sorry, requested compression method is not configured/', '/^identify: ThunderDecode: Not enough data at scanline/', '/^identify: .+?: Read error on strip/', '/^identify: .+?: Can not read TIFF directory/', '/^identify: Not a TIFF/', ]; $wgTiffIdentifyBypassMessages = [ '/^identify: .*TIFFReadDirectory/', '/^identify: .+?: unknown field with tag .+? encountered/' ]; PagedTiffHandler also checks a few parameters of the image in order to be able to control the necessary processing time. Example configuration: // Maximum number of embedded files in tiff image $wgTiffMaxEmbedFiles = 10000; // Maximum size of meta data $wgTiffMaxMetaSize = 64*1024; // 64kB When thumbnailing fails for an image, PagedTiffHandler will not try again to render this image for some time. The setting below controls after how many seconds thumbnailing may be tried again. Example configuration: // TTL of Cacheentries for Errors $wgTiffErrorCacheTTL = 84600;
All of the above shown parameters are set as default in the configuration of the extension.
See also
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||