(PHP 4 >= 4.1.0)
imagegd2() outputs GD2 image to browser or file.
The optional type parameter is either IMG_GD2_RAW or IMG_GD2_COMPRESSED. Default is IMG_GD2_RAW.
Note: The optional chunk_size and type parameters became available in PHP 4.3.2.