Home > PHP > Function > GD > imagecreatefromjpeg()

imagecreatefromjpeg()

imagecreatefromjpeg - Create a new image from file or URL

Syntax

resource imagecreatefromjpeg (string $filename)

Arguments

  • filename - Path to the JPEG image.

Description

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