썸네일 생성시 이미지 리소스 에러 예외처리 코드 추가
This commit is contained in:
1 parent
9e023937fa
commit
5a8c8cf9e0
1 file changed
+2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user