Load an Existing JPEG Image in PHP

Description

The following code shows how to load an Existing JPEG Image.

Example


<?php /*from   w ww  . j  a  v a  2s.  co m*/

    $animage = imagecreatefromjpeg ("myImage.jpg"); 
    imagejpeg ($animage); 
    header ("Content-type: image/jpeg"); 
    imagedestroy ($animage); 
?>




















Home »
  PHP Tutorial »
    Image »




Color
Create
Font
Operation
Shape
Text