]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix square images not getting proper thumbnails
authorRobin Appelman <icewind@owncloud.com>
Mon, 26 Mar 2012 22:42:15 +0000 (00:42 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 26 Mar 2012 22:42:15 +0000 (00:42 +0200)
lib/image.php

index b3c7d52ec2c24aae7e36b26d2b38c99d3ead3e8a..4c53dc32f582bf80de9a83fb21ca703109ed0e39 100644 (file)
@@ -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;