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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

Installation

  1. Install the image libraries Thumbro uses. libvips is required; libwebp is recommended for crisp, compact animated-GIF thumbnails. On Debian-based systems:

  2. Download the extension and place the files in a directory called Thumbro in your extensions/ folder.
  3. Add the following to the bottom of your LocalSettings.php, after all other extensions:

  4. βœ”οΈ 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


All versions of thumbro with dependencies

PHP Build Version
Package Version
Requires composer/installers Version >=1.0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package starcitizentools/thumbro contains the following files

Loading the files please wait ...