note 107249 added to function.exif-read-data

From: Date: Tue, 24 Jan 2012 17:58:22 +0000
Subject: note 107249 added to function.exif-read-data
Groups: php.notes 
Request: Send a blank email to php-notes+get-185730@lists.php.net to get a copy of this message
<?php //On this part you specify the file $image = "test1.jpg"; //This code generates a thumbnail of the image $thumbnail = exif_thumbnail($image, $width, $height, $type); echo "<img width='$width' height='$height' src='data:image;base64,".base64_encode($thumbnail)."'>"; //This code call the EXIF of the image $filename = $image; $exif = exif_read_data($filename, 0, true); // This code echo the "Shutter Speed" used echo " <br />" . "Shutter Speed: " . $exif["EXIF"]["ExposureTime"] . " sec.<br />"; // This code echo the "Aperture" used echo "Aperture: f/" . $exif["EXIF"]["FNumber"]/10 . " <br />"; // This code echo the ISO used echo "ISO: " . $exif["EXIF"]["ISOSpeedRatings"] . " <br />"; ?> ---- Server IP: 69.147.83.197 Probable Submitter: 206.248.100.228 ---- Manual Page -- http://www.php.net/manual/en/function.exif-read-data.php Edit -- https://master.php.net/note/edit/107249 Del: integrated -- https://master.php.net/note/delete/107249/integrated Del: useless -- https://master.php.net/note/delete/107249/useless Del: bad code -- https://master.php.net/note/delete/107249/bad+code Del: spam -- https://master.php.net/note/delete/107249/spam Del: non-english -- https://master.php.net/note/delete/107249/non-english Del: in docs -- https://master.php.net/note/delete/107249/in+docs Del: other reasons-- https://master.php.net/note/delete/107249 Reject -- https://master.php.net/note/reject/107249 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185730) next »