Hej
Jeg skrev dette indlæg på et engelsk-sproget forum.. De har endnu ikke
svaret.. Så jeg ville lige prøve at spørge her også:
Hi,
In JPGs created with a digital camera there's often some extra information,
such as creation date, name of the camera, exposuretime, and so on..
In Windows XP I can see this information by looking at the properties of the
picture. So I know that the information is there..
Now I would like to make a Photo-gallery where I can see the creation date
of the picture (The date where the file is modified/created is not good
enough).
I've search around for a solution. The nearest I came was a combination of
GetImageSize and iptcparse:
<?
$size = GetImageSize("testimg.jpg",&$info);
if (isset ($info["APP1"])) {
$iptc = iptcparse ($info["APP1"]);
var_dump ($iptc);
}
?>
But this only returns: bool(false)
In the example on
www.php.net they use APP13. But in my pictures there's no
APP13 data. The data is in APP1. If I print out the $info["APP1"] I get some
binary data, but some of it is readable, such as the date and camera model.
I hope someone can help me out here..
Thanks!
Mvh.
Anders Winther