<?php
$image = "DSCF3250.JPG";
$exif_data = exif_read_data($image);
$make = $exif_data['Make'];
$model = $exif_data['Model'];
$exposure = explode("/", $exif_data['ExposureTime']);
$exposure1 = $exposure[0] / $exposure[0];
$exposure2 = $exposure[1] / $exposure[0];
$fnumber = explode("/", $exif_data['FNumber']);
$fnumber = $fnumber[0] / $fnumber[1];
$iso = $exif_data['ISOSpeedRatings'];
$date = $exif_data['DateTime'];
$size = GetimageSize($image);
$width = 640;
$height = round($width * $size[1] / $size[0]);
$original = ImageCreateFromJPEG($image);
$X = ImagesX($original);
$Y = ImagesY($original);
$im = ImageCreateTrueColor($width, $height);
ImageCopyResampled($im, $original, 0, 0, 0, 0, $width + 1, $height + 1, $X, $Y);
$font = 'fonts/tahoma.ttf';
$color = ImageColorAllocate($im, 0, 0, 0);
$text = "Model : $model F : $fnumber Exposure : $exposure1/$exposure2 ISO : $iso";
ImagettfText($im, 16, 0, 10, $height - 10, $color, $font, $text);
header('Content-type: image/jpeg');
imagejpeg($im);
ImageDestroy($im);
ImageDestroy($original);
?>