IMAGEDESTROY(3) 1 IMAGEDESTROY(3)
imagedestroy - Destroy an image
SYNOPSIS
bool imagedestroy (resource $image)
DESCRIPTION
imagedestroy(3) frees any memory associated with image $image.
PARAMETERS
o $
image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Using imagedestroy(3) example
<?php
// create a 100 x 100 image
$im = imagecreatetruecolor(100, 100);
// alter or save the image
// frees image from memory
imagedestroy($im);
?>
PHP Documentation Group IMAGEDESTROY(3)