function get_it_thumbnail() 함수문의입니다.(shop.lib.php) 채택완료
$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);
$str = '<img src="'.$file_url.'" width="'.$width.'" height="'.$height.'"';
if($id)
$str .= ' id="'.$id.'"';
$str .= ' alt="">';
}
위에 보면 $filepath가 두개 나오는데 특별한 이유가 있는지요? 단순한 오타는 아닌것 같고요.
고수님들의 조언을 부탁드립니다.
감사합니다
답변 3개
function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_height, $is_create, $is_crop=false, $crop_mode='center', $is_sharpen=false, $um_value='80/0.5/3')
을 보시면 이해가 되실껍니다.
말씀하신 부분은 $source_path, $target_path 입니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인