MediaWiki master
thumb_handler.php File Reference

The web entry point to be used as 404 handler behind a web server rewrite rule for media thumbnails, internally handled via thumb.php. More...

Go to the source code of this file.

Variables

const MW_ENTRY_POINT 'thumb_handler'
 
const MW_NO_OUTPUT_COMPRESSION 1
 

Detailed Description

The web entry point to be used as 404 handler behind a web server rewrite rule for media thumbnails, internally handled via thumb.php.

This script will interpret a request URL like /w/images/thumb/a/a9/Example.jpg/50px-Example.jpg and treat it as if it was a request to thumb.php with the relevant query parameters filled out. See also $wgGenerateThumbnailOnParse.

See also
thumb.php
Note
GPL-2.0-or-later

Definition in file thumb_handler.php.

Variable Documentation

◆ MW_ENTRY_POINT

const MW_ENTRY_POINT 'thumb_handler'

Definition at line 25 of file thumb_handler.php.

◆ MW_NO_OUTPUT_COMPRESSION

const MW_NO_OUTPUT_COMPRESSION 1

Definition at line 24 of file thumb_handler.php.