Home > PHP > Function > GD > imagecreatefrompng()

imagecreatefrompng()

imagecreatefrompng - Create a new image from file or URL

Syntax

resource imagecreatefrompng (string $filename)

Arguments

  • filename - Path to the PNG image.

Description

imagecreatefrompng() 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.