Kézikönyv:Thumb.php
Appearance
| MediaWiki-fájl: thumb.php | |
|---|---|
| Könyvtár: | / |
| Forráskód: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Osztályok: | Kód keresése • Dokumentáció keresése |
Részletek
thumb.php is a script used for creating and streaming thumbnails.
To use it, set $wgThumbnailScriptPath to the path of this file.
Parameters are f for file name, w for width, p for page in multipaged files (if available).
404-es hiba kezelése
A szkript alkalmazható a nem található képek kezeléséhez.
Használatához kövesd az alábbi lépéseket, majd állítsd a $GenerateThumbnailOnParse változót false értékre. Ha a LocalSettings.php-ben beállítottad a $wgLocalFileRepot, az alábbi beállításokra is szükséged lesz:
$wgLocalFileRepo['transformVia404'] = true;
Scripted transform
Just add the following code to the bottom of LocalSettings.php.
$wgThumbnailScriptPath = "$wgScriptPath/thumb.php";
No web server configuration needed. This will cause thumb.php to either return the file if its already been rendered, or render the file on demand if needed.
Lásd még
- $wgThumbnailScriptPath
- thumb_handler.php - 404-kezelő