Skip to content
Snippets Groups Projects
Commit 266699dd authored by Robin Appelman's avatar Robin Appelman
Browse files

fix square images not getting proper thumbnails

parent 128d446f
Branches
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment