Home > PHP > Function > GD > imagecreatefromgif()

imagecreatefromgif()

imagecreatefromgif - Create a new image from file or URL

Syntax

resource imagecreatefromgif (string $filename)

Arguments

  • filename - Path to the GIF image.

Description

imagecreatefromgif() returns an image identifier representing the image obtained from the given filename.

Version

PHP 4, 5

Return value

Returns an image resource identifier on success, FALSE on errors.