Browse Source

fix square images not getting proper thumbnails

remotes/origin/stable45
Robin Appelman 14 years ago
parent
commit
266699ddf9
  1. 2
      lib/image.php

2
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;

Loading…
Cancel
Save