summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/image.php b/lib/image.php
index b3c7d52ec2c..4c53dc32f58 100644
--- a/lib/image.php
+++ b/lib/image.php
@@ -501,7 +501,7 @@ class OC_Image {
}
$width_orig=imageSX($this->resource);
$height_orig=imageSY($this->resource);
- if($width_orig === $height_orig) {
+ if($width_orig === $height_orig and $size==0) {
return true;
}
$ratio_orig = $width_orig/$height_orig;