썸네일 생성시 크롭사용안함일 때도 크롭되던 오류 수정

This commit is contained in:
chicpro
2013-05-20 10:18:51 +09:00
parent d39d0c7c0c
commit 764c3dd33a

View File

@ -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);