note 15464 deleted from function.read-exif-data by sniper

From: Date: Sun, 19 Oct 2003 08:06:37 +0000
Subject: note 15464 deleted from function.read-exif-data by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58869@lists.php.net to get a copy of this message
Note Submitter: peter@mf.lu.se ---- This is a slight modification of the example1 script at the top. It works at least with Canon Digital Ixus and writes out the thumbnail as a picture instead of the code. $adress="IMG_XXX.JPG"; $exif = read_exif_data ($adress); while(list($k,$v)=each($exif)) { if($k=="Thumbnail"){ $fp=fopen ("/www/home/image/Thumbnail$adress", 'a'); fwrite ($fp, $v); fclose ($fp); echo "<br />\n"; echo "<img src='Thumbnail$adress'>\n"; echo "<br />\n"; }else{ echo "$k: $v<br />\n"; } }

« previous php.notes (#58869) next »