썸네일 생성시 이미지 리소스 에러 예외처리 코드 추가

This commit is contained in:
chicpro
2013-04-15 14:22:45 +09:00
parent 9e023937fa
commit 5a8c8cf9e0

View File

@ -213,6 +213,8 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
$src = imagecreatefromjpeg($source_file);
} else if ($size[2] == 3) {
$src = imagecreatefrompng($source_file);
} else {
return;
}
if(!$src)