Graphics Php

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