3 * Handler for bitmap images that will be resized by clients
10 * Handler for bitmap images that will be resized by clients.
12 * This is not used by default but can be assigned to some image types
13 * using $wgMediaHandlers.
17 class BitmapHandler_ClientOnly
extends BitmapHandler
{
24 function normaliseParams( $image, &$params ) {
25 return ImageHandler
::normaliseParams( $image, $params );
34 * @return ThumbnailImage|TransformParameterError
36 function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 ) {
37 if ( !$this->normaliseParams( $image, $params ) ) {
38 return new TransformParameterError( $params );
40 return new ThumbnailImage( $image, $image->getURL(), $params['width'],
41 $params['height'], $image->getLocalRefPath() );