note 45345 rejected from function.iptcparse by tomsommer
| From: | tomsommer@php.net | Date: | Thu, 02 Sep 2004 22:36:40 +0000 |
| Subject: | note 45345 rejected from function.iptcparse by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75966@lists.php.net to get a copy of this message | ||
Note Submitter: ole at tera-sat dot com
----
I need to extract title with iptcparse(), I found this on the net:
$size = GetImageSize ("teglvaerk.jpg", &$info);
$iptc = iptcparse($info["APP13"]);
echo $iptc["2#005"][0];?><br>
and would like to use this and not "exif_read_data", but cant get to work, would someone
help me.
Se and DL the full script on www.tera-sat.com
(I'm new to PHP)
The code i use now looks like this.
$exif = exif_read_data ($files[$iu],0,true);
if (array_key_exists('IFD0', $exif)) {
if (array_key_exists('Artist', $exif['IFD0'])) ?>
Titel: <?=$exif['IFD0']['Artist']