Extension:PDFThumbnails

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

Release status: beta

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

Check usage (experimental)

Contents

[edit] What can this extension do?

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.

[edit] Installation

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.

[edit] Usage

Please expand.


[edit] Configuration parameters

$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;

[edit] See also

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox