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

This commit is contained in:
chicpro
2013-04-15 14:16:52 +09:00
parent 318ed7920e
commit 1aa00ba0d7

View File

@ -215,6 +215,9 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
$src = imagecreatefrompng($source_file);
}
if(!$src)
return;
$src_width = $size[0];
$src_height = $size[1];