Extension:VipsScaler
|
VipsScaler Release status: beta |
|||
|---|---|---|---|
| Implementation | Media | ||
| Description | Scale images using VIPS | ||
| Author(s) | Bryan Tong Minh (Bryantalk) | ||
| MediaWiki | 1.19 | ||
| License | MIT | ||
| Download | |||
|
|||
|
|||
| Check usage and version matrix | |||
| Bugs: list open list all report | |||
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.
The Wikimedia Foundation is testing out using it on test2.wikipedia.org, but it isn't deployed on any major WMF wikis yet.
Contents |
VIPS installation [edit]
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");
Debian / Ubuntu [edit]
$ apt-get install libvips-tools
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
Mac OS X [edit]
- homebrew
- brew install vips
- binary symlink is /usr/local/bin/vips
Configuration [edit]
$wgVipsCommand : path to the vips command (default: vips).
$wgVipsOptions : scaler conditions, to be documented.
| This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |