imagesavealpha sets the flag which determines whether to retain full alpha channel information (as opposed to single-color transparency) when saving PNG images.
Alphablending has to be disabled (
to retain the alpha-channel in the first place.
A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor.
Whether to save the alpha channel or not. Defaults to false.
Returns true on success or false on failure.
|8.0.0||image expects a GdImage instance now; previously, a resource was expected.|