From 6d861d1222d72bacbb7723f9df05548c76cca967 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 24 Jul 2005 22:11:11 +0200 Subject: EXIF/IPTC metadata in media popup darcs-hash:20050724201111-7ad00-81e8de6162b0e0923c08dcc7b8c750cd604c4dfd.gz --- inc/template.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'inc/template.php') diff --git a/inc/template.php b/inc/template.php index 3a86930be..90fbe5a32 100644 --- a/inc/template.php +++ b/inc/template.php @@ -612,15 +612,28 @@ function tpl_mediafilelist(){ ptln('('.$w.'×'.$h.' '.filesize_h($item['size']).')',6); ptln($del.'
',6); + ptln('
',6); ptln(''); if($w>120){ - print ''; + print ''; }else{ - print ''; + print ''; } print ''; + + //read EXIF/IPTC data + $meta = new JpegMeta(mediaFN($item['id'])); + $t = $meta->getField('IPTC.Headline'); + if($t) print ''.$t.'
'; + $t = $meta->getField(array('IPTC.Caption','EXIF.UserComment','EXIF.TIFFImageDescription','EXIF.TIFFUserComment')); + if($t) print $t.'
'; + + $t = $meta->getField(array('IPTC.Keywords','IPTC.Category')); + if($t) print ''.$t.'
'; + + ptln('
',6); }else{ ptln ('('.filesize_h($item['size']).')',6); ptln($del,6); -- cgit v1.2.3