src에 대한 imagedestory 코드 추가
This commit is contained in:
@ -304,6 +304,7 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
|
|||||||
imagejpeg($dst, $thumb_file, 90);
|
imagejpeg($dst, $thumb_file, 90);
|
||||||
chmod($thumb_file, 0606); // 추후 삭제를 위하여 파일모드 변경
|
chmod($thumb_file, 0606); // 추후 삭제를 위하여 파일모드 변경
|
||||||
|
|
||||||
|
imagedestroy($src);
|
||||||
imagedestroy($dst);
|
imagedestroy($dst);
|
||||||
|
|
||||||
return basename($thumb_file);
|
return basename($thumb_file);
|
||||||
|
|||||||
Reference in New Issue
Block a user