summaryrefslogtreecommitdiffstats
path: root/lib/image.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-03-27 00:42:15 +0200
committerRobin Appelman <icewind@owncloud.com>2012-03-27 00:42:15 +0200
commit266699ddf90a074aa4c4f5b50a63f5f430842bde (patch)
tree73092f10398a27e70af065bf2a796b2939124819 /lib/image.php
parent128d446f39de93ce63bda3b8ef261446ad6efb0b (diff)
downloadnextcloud-server-266699ddf90a074aa4c4f5b50a63f5f430842bde.tar.gz
nextcloud-server-266699ddf90a074aa4c4f5b50a63f5f430842bde.zip
fix square images not getting proper thumbnails
Diffstat (limited to 'lib/image.php')
-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;