diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index 04702a590..1c8b2f6e6 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -254,12 +254,6 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h } break; } - } else { - if($size[1] / $size[0] >= $ratio) { - $src_h = round($src_w * $ratio); - } else { - $src_w = round($size[1] / $ratio); - } } $dst = imagecreatetruecolor($dst_w, $dst_h);