|
imagejpegOutput image to browser or file Description
bool imagejpeg(GdImage
$image , resourcestringnull $file = null , int $quality = -1)
imagejpeg creates a JPEG file from
the given Parameters
Return Values
Returns Caution
However, if libgd fails to output the image, this function returns Errors/Exceptions
Throws a ValueError if Changelog
Examples
Example #1 Outputting a JPEG image to the browser
The above example will output something similar to:
Example #2 Saving a JPEG image to a file
Example #3 Outputting the image at 75% quality to the browser
Notes
See Also
|