Load jpg image file in PHP

Description

The following code shows how to load jpg image file.

Example


<?php/*from  www  .  ja v a  2s  . c o  m*/
$myImage = imagecreatefromjpeg('jpgFile.jpg');
header("Content-type: image/jpeg");
imagejpeg($myImage);
imagedestroy($myImage);
?>




















Home »
  PHP Tutorial »
    Image »




Color
Create
Font
Operation
Shape
Text