From: Robin Appelman Date: Mon, 26 Mar 2012 22:42:15 +0000 (+0200) Subject: fix square images not getting proper thumbnails X-Git-Tag: v4.0.0beta~400^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=266699ddf90a074aa4c4f5b50a63f5f430842bde;p=nextcloud-server.git fix square images not getting proper thumbnails --- 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;