From 764c3dd33a509d3f4dc81ef34d1e3edea3ea3257 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 20 May 2013 10:18:51 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8D=B8=EB=84=A4=EC=9D=BC=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=EC=8B=9C=20=ED=81=AC=EB=A1=AD=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EC=95=88=ED=95=A8=EC=9D=BC=20=EB=95=8C=EB=8F=84=20=ED=81=AC?= =?UTF-8?q?=EB=A1=AD=EB=90=98=EB=8D=98=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/thumbnail.lib.php | 6 ------ 1 file changed, 6 deletions(-) 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);