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