Extension:PDFThumbnails

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
PDFThumbnails

Release status: unmaintained

Implementation Media
Description Handles PDF files like multipage DJVU
Author(s) bile
Latest version 1.5 (2009-07-21)
MediaWiki 1.15.1
License No license specified
Download http://landofbile.com/

Translate the PDFThumbnails extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

What can this extension do?[edit | edit source]

Creates thumbnails for PDFs just using ImageMagick just as done for DJVU.

This plugin is effectively the DJVU thumbnailer repackaged as an extension for PDFs.

Installation[edit | edit source]

To install this extension, add the following to LocalSettings.php:

require_once("$IP/extensions/PDFThumbnails.php");

The default thumbnail type is jpg. If you wish to use ‘png’ or ‘gif’ replace ‘jpg’ in $wgPDFThumbType and $wgPDFConverters.

Usage[edit | edit source]

Please expand.


Configuration parameters[edit | edit source]

$wgMediaHandlers['application/pdf'] = 'PdfHandler';
$wgPDFThumbType = array('jpg', 'image/jpg');
$wgPDFConverter = 'ImageMagick';
$wgPDFConverterPath = '';
$wgPDFMaxSize = 2048;
$wgPDFConverters = array('ImageMagick' => '$path/convert -background white -thumbnail $widthx$height\! $input[$page] JPG:$output');
$wgPDFDPI = 300;

See also[edit | edit source]