note 15464 added to function.read-exif-data
| From: | peter at mf dot lu dot se | Date: | Wed, 12 Sep 2001 11:54:00 +0000 |
| Subject: | note 15464 added to function.read-exif-data | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17930@lists.php.net to get a copy of this message | ||
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";
}
}
http://www.php.net/manual/en/function.read-exif-data.php