Index: trunk/phase3/includes/media/Bitmap.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | if ( is_null( $checkImageAreaHookResult ) ) { |
49 | 49 | global $wgMaxImageArea; |
50 | 50 | |
51 | | - if ( $this->getImageArea( $image ) > $wgMaxImageArea && |
| 51 | + if ( $srcWidth * $srcHeight > $wgMaxImageArea && |
52 | 52 | !( $image->getMimeType() == 'image/jpeg' && |
53 | 53 | self::getScalerType( false, false ) == 'im' ) ) { |
54 | 54 | # Only ImageMagick can efficiently downsize jpg images without loading |