Index: trunk/phase3/includes/media/Bitmap.php |
— | — | @@ -287,8 +287,7 @@ |
288 | 288 | $quality = "-quality 95"; // zlib 9, adaptive filtering |
289 | 289 | |
290 | 290 | } elseif ( $params['mimeType'] == 'image/gif' ) { |
291 | | - if ( $this->getImageArea( $image, $params['srcWidth'], |
292 | | - $params['srcHeight'] ) > $wgMaxAnimatedGifArea ) { |
| 291 | + if ( $this->getImageArea( $image ) > $wgMaxAnimatedGifArea ) { |
293 | 292 | // Extract initial frame only; we're so big it'll |
294 | 293 | // be a total drag. :P |
295 | 294 | $scene = 0; |
— | — | @@ -376,8 +375,7 @@ |
377 | 376 | } elseif( $params['mimeType'] == 'image/png' ) { |
378 | 377 | $im->setCompressionQuality( 95 ); |
379 | 378 | } elseif ( $params['mimeType'] == 'image/gif' ) { |
380 | | - if ( $this->getImageArea( $image, $params['srcWidth'], |
381 | | - $params['srcHeight'] ) > $wgMaxAnimatedGifArea ) { |
| 379 | + if ( $this->getImageArea( $image ) > $wgMaxAnimatedGifArea ) { |
382 | 380 | // Extract initial frame only; we're so big it'll |
383 | 381 | // be a total drag. :P |
384 | 382 | $im->setImageScene( 0 ); |