From 33f8a6476c7e6ff65a000bb1aca7d9b94c1ebeb1 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 28 Nov 2011 04:40:31 +0000 Subject: [PATCH] Fix for r101677: remove the extra parameters from the other getImageArea() callers. --- includes/media/Bitmap.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/media/Bitmap.php b/includes/media/Bitmap.php index 035694ed59..2424888787 100644 --- a/includes/media/Bitmap.php +++ b/includes/media/Bitmap.php @@ -287,8 +287,7 @@ class BitmapHandler extends ImageHandler { $quality = "-quality 95"; // zlib 9, adaptive filtering } elseif ( $params['mimeType'] == 'image/gif' ) { - if ( $this->getImageArea( $image, $params['srcWidth'], - $params['srcHeight'] ) > $wgMaxAnimatedGifArea ) { + if ( $this->getImageArea( $image ) > $wgMaxAnimatedGifArea ) { // Extract initial frame only; we're so big it'll // be a total drag. :P $scene = 0; @@ -376,8 +375,7 @@ class BitmapHandler extends ImageHandler { } elseif( $params['mimeType'] == 'image/png' ) { $im->setCompressionQuality( 95 ); } elseif ( $params['mimeType'] == 'image/gif' ) { - if ( $this->getImageArea( $image, $params['srcWidth'], - $params['srcHeight'] ) > $wgMaxAnimatedGifArea ) { + if ( $this->getImageArea( $image ) > $wgMaxAnimatedGifArea ) { // Extract initial frame only; we're so big it'll // be a total drag. :P $im->setImageScene( 0 ); -- 2.20.1