Manual:Thumb.php/fr

Détails
Script utilisé pour retailler les images si cela est configuré devoir être fait quand le navigateur demande l'image, et non en générant la page.

To use it, set  to the path of this file.

Parameters are  for file name,   for width,   for page in multipaged files (if available).

Exemple: https://commons.wikimedia.org/w/thumb.php?f=Delle_strade_ferrate_e_della_loro_futura_influenza_in_Europa.djvu&w=600&p=206

Gestion de 404
Ce script peut aussi être utilisé comme un gestionnaire de 404 pour générer des vignettes d'image quand elles n'existent pas. To use it, follow the steps below, then set  to false. If you have $wgLocalFileRepo defined in LocalSettings.php, then you need to also set:

MediaWiki >= 1.20
Create a rewrite rule to call thumb_handler.php when a file in /thumb/ doesn't exist. If your wiki is in the /w directory, something like this should work on apache:

If this doesn't work, the 1.19 version should still work.

MediaWiki <= 1.19
Create a rewrite rule to call this script when a file in /thumb/ doesn't exist. If your wiki is in the /wiki directory, something like this should work on apache:


 * Exemple: http://www.mediawiki.org/w/thumb.php?f=example.jpg&width=100

Scripted transform
Just add the following code to the bottom of.

No apache config changes needed. This will cause thumb.php to either return the file if its already been rendered, or render the file on demand if needed.