destroy — Free up memory
Description
public Intervention\Image\Image destroy()
Frees memory associated with the current image instance before the PHP script ends. Normally resources are destroyed automatically after the script is finished.
Of course, the image instance is no longer usable after the method has been called.
Parameters
none
Return Values
none
Examples
// create an image
$img = Image::make('public/foo.jpg');
// perform some modifications and destroy resource
$img->resize(320, 240);
$img->save('public/small.jpg');
$img->destroy();
当前内容版权归 intervention 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 intervention .