Saturday, 30 April 2016

imagecreatefromjpeg PHP GD Function

Create a new image from a url or uploaded by file control

syntax:

resource imagecreatefromjpeg ( string $filename )

Argument Detail:

filename Path to the JPEG image.

Return Values :

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

example:

$source = imagecreatefromjpeg($_FILES['file']['tmp_name']);