|
MediaWiki
REL1_21
|
PHP script to stream out an image thumbnail. More...
Go to the source code of this file.
Enumerations | |
| enum | MW_NO_OUTPUT_COMPRESSION |
Functions | |
| wfExtractThumbParams ($thumbRel) | |
| Extract the required params for thumb.php from the thumbnail request URI. | |
| wfStreamThumb (array $params) | |
| Stream a thumbnail specified by parameters. | |
| wfThumbError ($status, $msg) | |
| Output a thumbnail generation error message. | |
| wfThumbHandle404 () | |
| Handle a thumbnail request via thumbnail file URL. | |
| wfThumbHandleRequest () | |
| Handle a thumbnail request via query parameters. | |
PHP script to stream out an image thumbnail.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
Definition in file thumb.php.
| wfExtractThumbParams | ( | $ | thumbRel | ) |
Extract the required params for thumb.php from the thumbnail request URI.
At least 'width' and 'f' should be set if the result is an array.
| $thumbRel | String Thumbnail path relative to the thumb zone |
Definition at line 299 of file thumb.php.
References $matches, $params, $size, array(), list, RepoGroup\singleton(), and wfRunHooks().
| wfStreamThumb | ( | array $ | params | ) |
Stream a thumbnail specified by parameters.
| $params | Array |
Definition at line 92 of file thumb.php.
Referenced by wfThumbHandleRequest().
| wfThumbError | ( | $ | status, |
| $ | msg | ||
| ) |
| wfThumbHandle404 | ( | ) |
Handle a thumbnail request via query parameters.
Definition at line 51 of file thumb.php.
References $params, and wfStreamThumb().