From 9e652ac72f2362633b26abd018cc53ece5babbf2 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 20 Mar 2017 17:34:30 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9B=90=EB=B3=B8=EB=B9=84=EC=9C=A8=EC=97=90?= =?UTF-8?q?=20=EB=A7=9F=EC=B6=B0=20=EB=A6=AC=EC=82=AC=EC=9D=B4=ED=8A=B8=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/shop.lib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 529c3f8e4..bc060cab8 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -382,7 +382,7 @@ function get_image($img, $width=0, $height=0, $img_id='') // 상품 이미지를 얻는다 -function get_it_image($it_id, $width, $height=0, $anchor=false, $img_id='', $img_alt='') +function get_it_image($it_id, $width, $height=0, $anchor=false, $img_id='', $img_alt='', $is_crop=false) { global $g5; @@ -417,7 +417,7 @@ function get_it_image($it_id, $width, $height=0, $anchor=false, $img_id='', $img if($filename) { //thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_height, $is_create, $is_crop=false, $crop_mode='center', $is_sharpen=true, $um_value='80/0.5/3') - $thumb = thumbnail($filename, $filepath, $filepath, $width, $height, false, true, 'center', false, $um_value='80/0.5/3'); + $thumb = thumbnail($filename, $filepath, $filepath, $width, $height, false, $is_crop, 'center', false, $um_value='80/0.5/3'); } if($thumb) { @@ -442,7 +442,7 @@ function get_it_image($it_id, $width, $height=0, $anchor=false, $img_id='', $img // 상품이미지 썸네일 생성 -function get_it_thumbnail($img, $width, $height=0, $id='') +function get_it_thumbnail($img, $width, $height=0, $id='', $is_crop=false) { $str = ''; @@ -462,7 +462,7 @@ function get_it_thumbnail($img, $width, $height=0, $id='') $height = round(($width * $img_height) / $img_width); } - $thumb = thumbnail($filename, $filepath, $filepath, $width, $height, false, true, 'center', false, $um_value='80/0.5/3'); + $thumb = thumbnail($filename, $filepath, $filepath, $width, $height, false, $is_crop, 'center', false, $um_value='80/0.5/3'); if($thumb) { $file_url = str_replace(G5_PATH, G5_URL, $filepath.'/'.$thumb);