summaryrefslogtreecommitdiff
path: root/includes/media/TransformationalImageHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/media/TransformationalImageHandler.php')
-rw-r--r--includes/media/TransformationalImageHandler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/media/TransformationalImageHandler.php b/includes/media/TransformationalImageHandler.php
index fd8d81d2..15753a96 100644
--- a/includes/media/TransformationalImageHandler.php
+++ b/includes/media/TransformationalImageHandler.php
@@ -167,7 +167,7 @@ abstract class TransformationalImageHandler extends ImageHandler {
return $this->getClientScalingThumbnailImage( $image, $scalerParams );
}
- if ( !$this->isImageAreaOkForThumbnaling( $image, $params ) ) {
+ if ( $image->isTransformedLocally() && !$this->isImageAreaOkForThumbnaling( $image, $params ) ) {
global $wgMaxImageArea;
return new TransformTooBigImageAreaError( $params, $wgMaxImageArea );
}