Jump to content

Extension:Thumbro

From mediawiki.org
MediaWiki extensions manual
Thumbro
Release status: experimental
Implementation Media
Description Improve and expand thumbnailing in MediaWiki
Author(s) alistair3149, Bryan Tong Minh
Compatibility policy Master maintains backward compatibility.
MediaWiki 1.39.4+
Composer starcitizentools/thumbro
License GNU General Public License 2.0 or later
Download
Readme

The Thumbro extension improves and expands thumbnailing in MediaWiki. It is a forked and rewritten version of Extension:VipsScaler.

Features

[edit]
  • Use libvips to render thumbnails instead of ImageMagick and GD
  • Allow custom output options for libvips
  • Render WebP thumbnails by default for gif (animated too!), jpeg, png, webp
  • Allow adding <source> element to the image using the ThumbroBeforeProduceHtml hook
  • Add a hidden anchor element to allow web crawler to crawl the original resolution image (T54647)

Installation

[edit]
  • Install libvips
  • Download and place the file(s) in a directory called Thumbro in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'Thumbro' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

See also

[edit]