MediaWiki REL1_32
BitmapHandler_ClientOnly.php
Go to the documentation of this file.
1<?php
32// phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
34
43
52 function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 ) {
53 if ( !$this->normaliseParams( $image, $params ) ) {
54 return new TransformParameterError( $params );
55 }
56
57 return new ThumbnailImage( $image, $image->getUrl(), $image->getLocalRefPath(), $params );
58 }
59}
Handler for bitmap images that will be resized by clients.
doTransform( $image, $dstPath, $dstUrl, $params, $flags=0)
Generic handler for bitmap images.
normaliseParams( $image, &$params)
Media transform output for images.
Shortcut class for parameter validation errors.
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check $image
Definition hooks.txt:925
$params