PHP. Руководство по PHP. 2005
imagecreatefromjpeg
imagecreatefromjpeg
Description
resource imagecreatefromjpeg (string filename)imagecreatefromjpeg() returns an image identifier representing the image obtained from the given filename.
imagecreatefromjpeg() returns an empty string on failure. It also outputs an error message, which unfortunately displays as a broken link in a browser. To ease debugging the following example will produce an error JPEG:
Замечание: JPEG support is only available if
PHP was compiled against GD-1.8 or later.