Load an existing jpg image in PHP

Description

The following code shows how to load an existing jpg image.

Example


<?/*  w ww  .ja v a2s. c  om*/
    $animage = imagecreatefromjpeg ("images/tiger.jpg")){
    imagejpeg ($animage);
    header ("Content-type: image/jpeg");
    imagedestroy ($animage);
?>




















Home »
  PHP Tutorial »
    Image »




Color
Create
Font
Operation
Shape
Text