Does anyone know what's the right code to read IPTC metadata.
I have the code to read EXIF metadata and it gives me alot of information which I don't need. How do I modify this code so it only give the information i required.
EXIF inout code
[code=php]
<?php
$path="image.jp eg";
$exif = exif_read_data( $path, 0, true);
echo "$path:<br />\n";
foreach ($exif as $key => $section) {
foreach ($section as $name => $val) {
echo "$key.$name : $val<br />\n";
}
}
?>
[/code]
EXIF output - when this code was fire it produce the following output.
thanks
I have the code to read EXIF metadata and it gives me alot of information which I don't need. How do I modify this code so it only give the information i required.
EXIF inout code
[code=php]
<?php
$path="image.jp eg";
$exif = exif_read_data( $path, 0, true);
echo "$path:<br />\n";
foreach ($exif as $key => $section) {
foreach ($section as $name => $val) {
echo "$key.$name : $val<br />\n";
}
}
?>
[/code]
EXIF output - when this code was fire it produce the following output.
Code:
hp.jpg: //file name FILE.FileName: hp.jpg FILE.FileDateTime: 1171878580 FILE.FileSize: 5705 FILE.FileType: 2 FILE.MimeType: image/jpeg FILE.SectionsFound: APP12 COMPUTED.html: width="170" height="190" COMPUTED.Height: 190 COMPUTED.Width: 170 COMPUTED.IsColor: 1 APP12.Company: Ducky APP12.Info:
Comment