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
{
18 function normaliseParams( $image, &$params ) {
19 return parent
::normaliseParams( $image, $params );
22 function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 ) {
23 if ( !$this->normaliseParams( $image, $params ) ) {
24 return new TransformParameterError( $params );
26 return new ThumbnailImage( $image, $image->getURL(), $params['width'],
27 $params['height'], $image->getPath() );