Extension:VipsScaler

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

Release status: beta

Implementation Media
Description Scale images using VIPS
Author(s) Bryan Tong Minh (BryanTalk)
MediaWiki 1.19
License MIT
Download
Added rights

vipsscaler-test

Hooks used
BitmapHandlerTransform

BitmapHandlerCheckImageArea

Check usage (experimental)

This extension is a wrapper around VIPS a free image processing software. VIPS is a set of image manipulation tools specially designed for speed and low memory usage. This is useful for resizing large PNGs. The extension shells out to the vips binary. It can be configured to scale only certain files (for example: big PNGs) by configuring $wgVipsConditions.

Contents

[edit] VIPS installation

Install VIPS. It can be downloaded from http://www.vips.ecs.soton.ac.uk/.

After downloading VipsScaler, add it to your extensions/ directory, then add require_once("$IP/extensions/VipsScaler/VipsScaler.php"); If you'd like to add the Special:VipsTest test page, also add require_once("$IP/extensions/VipsScaler/VipsTest.php");

[edit] Debian / Ubuntu

$ apt-get install vips

If you want to build from source have a look at upstream documentation: http://www.vips.ecs.soton.ac.uk/index.php?title=Build_on_Ubuntu

[edit] Mac OS X

homebrew
brew install vips
binary symlink is /usr/local/bin/vips

[edit] Configuration

$wgVipsCommand : path to the vips command (default: vips).

$wgVipsOptions : scaler conditions, to be documented.

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox