Download the PHP package starcitizentools/thumbro without Composer
On this page you can find all versions of the php package starcitizentools/thumbro. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download starcitizentools/thumbro
More information about starcitizentools/thumbro
Files in starcitizentools/thumbro
Package thumbro
Short Description Imrproves and expands thumbnails in MediaWiki.
License GPL-2.0-or-later
Homepage https://www.mediawiki.org/wiki/Extension:Thumbro
Informations about the package thumbro
Thumbro
Can we get Thumbor for the wiki?
We have Thumbor at home.
Thumbor at home:
Thumbro improves and expands thumbnail generation in MediaWiki. Instead of relying on a single tool, it automatically picks the most suitable image library for each file format β so every thumbnail comes out at the best quality and smallest size, with no manual tuning and room to add better libraries over time. Forked from Extension:VipsScaler.
Features
- Routes each format to the best-suited image library automatically (currently libvips and libwebp), instead of MediaWiki's default ImageMagick and GD
- Produces higher-quality, smaller thumbnails β including for animated images
- Renders WebP thumbnails by default for GIF, JPEG, PNG, and WebP (including animated)
- Lets you fine-tune encoding per format with custom load and save options
- Extends thumbnail support to more formats, such as animated WebP
- Adds a
<source>element to images via theThumbroBeforeProduceHtmlhook - Adds a hidden anchor so web crawlers can reach the original-resolution image (T54647)
Installation
-
Install the image libraries Thumbro uses. libvips is required; libwebp is recommended for crisp, compact animated-GIF thumbnails. On Debian-based systems:
- Download the extension and place the files in a directory called
Thumbroin yourextensions/folder. -
Add the following to the bottom of your
LocalSettings.php, after all other extensions: - βοΈ Done β visit Special:Version on your wiki to confirm the extension is installed.
Configuration
βΉοΈ Thumbro works out of the box β no configuration required.
$wgThumbroLibraries
The image libraries Thumbro can run, keyed by library. Each library maps its binaries
(by binary name) to their executable paths. libwebp ships two tools β gif2webp and
cwebp β so it owns both.
Default:
$wgThumbroOptions
Controls how each file type is thumbnailed as a resize β encode pipeline. The defaults are tuned per format, so most wikis never need to change this.
Each MIME block has:
| Key | Description |
|---|---|
enabled |
Turn Thumbro on or off for this file type |
minArea / maxArea |
Optional: only handle sources whose area (pxΒ²) is within range |
resize |
The resize stage: { "options": { β¦ } } β libvips load/resize options |
encode |
An ordered list of encoder choices. Each entry is { "encoder", "when"?, "options" }. The first entry whose when capability guard the file satisfies is used; an entry with no when is the catch-all (put it last). Each encoder owns its own options. |
Encoders: vips-webp (libvips webpsave β also handles animation), cwebp (libwebp, static only β more byte-efficient), gif2webp (libwebp, animated). when guards match the file's capabilities: animated, alpha (transparency), underThreshold (area β€ $wgThumbroMaxAnimatedArea).
Default (abridged):
Other options
| Name | Description | Values | Default |
|---|---|---|---|
$wgThumbroMaxAnimatedArea |
Largest animation Thumbro will fully re-encode, measured as width Γ height Γ frames. Bigger animations are rendered as a single static frame to keep thumbnailing fast. | integer | 25000000 |
$wgThumbroEnabled |
Disable Thumbro across the wiki (the Special:ThumbroTest page still works) | true / false |
true |
$wgThumbroExposeTestPage |
Enable the Special:ThumbroTest comparison page | true / false |
false |
$wgThumbroTestExpiry |
Cache lifetime, in seconds, for images streamed to Special:ThumbroTest | integer | 3600 |
Comparing thumbnails
Thumbro ships a special page for comparing thumbnails before and after Thumbro. Enable it with:
To keep the "before" thumbnail untouched by Thumbro, either disable Thumbro site-wide:
β¦or disable the specific file format you want to test under $wgThumbroOptions.
Requirements
- MediaWiki 1.43.0 or later
- libvips (8.14 or later; older versions may work but are untested) β required. Drives core thumbnail generation via the
vipsthumbnailcommand. - libwebp (the
cwebpandgif2webptools; Debian/Ubuntuwebppackage) β recommended.cwebpencodes static WebP thumbnails more compactly than libvips;gif2webpencodes animated GIFs to compact animated WebP, far smaller than libvips for transparent animations. Without it, both fall back to libvips automatically. - Imagick β optional. Powers the detailed comparison statistics on Special:ThumbroTest.