# The size of the image on the page
'clientWidth' => $params['width'],
'clientHeight' => $params['height'],
# The size of the image on the page
'clientWidth' => $params['width'],
'clientHeight' => $params['height'],
'comment' => isset( $params['descriptionUrl'] ) ?
"File source: {$params['descriptionUrl']}" : '',
# Properties of the original image
'comment' => isset( $params['descriptionUrl'] ) ?
"File source: {$params['descriptionUrl']}" : '',
# Properties of the original image
$im->sharpenImage( $radius, $sigma );
}
$im->setCompressionQuality( 80 );
$im->sharpenImage( $radius, $sigma );
}
$im->setCompressionQuality( 80 );
$im->setCompressionQuality( 95 );
} elseif ( $params['mimeType'] == 'image/gif' ) {
if ( $this->getImageArea( $image ) > $wgMaxAnimatedGifArea ) {
$im->setCompressionQuality( 95 );
} elseif ( $params['mimeType'] == 'image/gif' ) {
if ( $this->getImageArea( $image ) > $wgMaxAnimatedGifArea ) {
public function rotate( $file, $params ) {
global $wgImageMagickConvertCommand;
public function rotate( $file, $params ) {
global $wgImageMagickConvertCommand;
$scene = false;
$scaler = self::getScalerType( null, false );
switch ( $scaler ) {
case 'im':
$cmd = wfEscapeShellArg( $wgImageMagickConvertCommand ) . " " .
$scene = false;
$scaler = self::getScalerType( null, false );
switch ( $scaler ) {
case 'im':
$cmd = wfEscapeShellArg( $wgImageMagickConvertCommand ) . " " .