(PHP 4 >= 4.0.7, PHP 5, PHP 7)
Output GD image to browser or file
bool imagegd ( resource $image [, string $filename ] )
Outputs a GD image to the given filename.
Parameters:
image
An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
filename
The path to save the file to. If not set or NULL