썸네일 생성시 이미지 리소스 에러 예외처리 코드 추가
This commit is contained in:
@ -213,6 +213,8 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
|
|||||||
$src = imagecreatefromjpeg($source_file);
|
$src = imagecreatefromjpeg($source_file);
|
||||||
} else if ($size[2] == 3) {
|
} else if ($size[2] == 3) {
|
||||||
$src = imagecreatefrompng($source_file);
|
$src = imagecreatefrompng($source_file);
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$src)
|
if(!$src)
|
||||||
|
|||||||
Reference in New Issue
Block a user