
No entiendo para que haces 2 bucles y das tanta vuelta para mostrar un array, desde que la imagen tenga
APP13 te va a mostrar su información. ¿Estás seguro que tiene APP13? Podrías compartir la imagen?
Código PHP:
Ver original<?php
$imageIPTC = 'imagen.jpg';
function output_iptc_data($image_path) {
if (isset($info["APP13"])) { foreach ($iptc as $c => $v) {
echo $c . ' ' . $v[0] . '<br />';
}
} else {
echo 'La imagen no tiene APP13';
}
}
}
output_iptc_data($imageIPTC);
?>
Intentaste con exif ?
Código PHP:
Ver original<?php
foreach ($exif as $clave => $seccion) {
foreach ($seccion as $c => $v) {
echo "<b>$c</b> $v <br />";
}
}
?>
La clase Image IPTC de PEAR también sirve:
http://pear.php.net/package/Image_IPTC/download
Código PHP:
Ver original<?php
$iptc = new Image_IPTC('a.jpg');
echo '<pre>';
echo '</pre>';
Saludos.