gif_outputAsPng

Description

Writes a gif file to disk as a png file.

Syntax

bool gif_outputAsPng (resource $gif, string $lpszFileName, int $bgColor)



Parameter $gif

Expected type: Resource
Description: A GD image created with gif_loadFile



Parameter $lpszFileName

Expected type: String
Description: The name of the PNG file



Parameter $bgColor

Expected type: Integer
Description: An integer value that somehow relates to the background color of the png



Return value

Expected type: Boolean
Description: True if it was successful, false otherwise


Notes

  • Returns whether it was successful or not.
Advertisement: