summaryrefslogtreecommitdiff
path: root/includes/media/Bitmap_ClientOnly.php
blob: 9801f9bee70f44a412b37ebee5308662dc6290bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

class BitmapHandler_ClientOnly extends BitmapHandler {
	function normaliseParams( $image, &$params ) {
		return ImageHandler::normaliseParams( $image, $params );
	}

	function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 ) {
		if ( !$this->normaliseParams( $image, $params ) ) {
			return new TransformParameterError( $params );
		}
		return new ThumbnailImage( $image, $image->getURL(), $params['width'], 
			$params['height'], $image->getPath() );
	}
}