Jimhere-
Here's what I had working, you might be able to make something of it:
// IPTC Data Information for EXIF Display
function output_iptc_data( $image_path ) {
// --------- Set up Array Functions --------- //
$iptcTags = array (
"2#000" => "Record Version",
"2#003" => "Object Type Reference",
"2#005" => "Object Name (Title)",
"2#007" => "Edit Status",
"2#008" => "Editorial Update",
"2#010" => "Urgency",
"2#012" => "Subject Reference",
"2#015" => "Category",
"2#020" => "Supplemental Category",
"2#022" => "Fixture Identifier",
"2#025" => "Keywords",
"2#026" => "Content Location Code",
"2#027" => "Content Location Name",
"2#030" => "Release Date",
"2#035" => "Release Time",
"2#037" => "Expiration Date",
"2#035" => "Expiration Time",
"2#040" => "Special Instructions",
"2#042" => "Action Advised",
"2#045" => "Reference Service",
"2#047" => "Reference Date",
"2#050" => "Reference Number",
"2#055" => "Date Created",
"2#060" => "Time Created",
"2#062" => "Digital Creation Date",
"2#063" => "Digital Creation Time",
"2#065" => "Originating Program",
"2#070" => "Program Version",
"2#075" => "Object Cycle",
"2#080" => "By-Line (Author)",
"2#085" => "By-Line Title (Author Position) [Not used in Photoshop 7]",
"2#090" => "City",
"2#092" => "Sub-Location",
"2#095" => "Province/State",
"2#100" => "Country/Primary Location Code",
"2#101" => "Country/Primary Location Name",
"2#103" => "Original Transmission Reference",
"2#105" => "Headline",
"2#110" => "Credit",
"2#115" => "Source",
"2#116" => "Copyright Notice",
"2#118" => "Contact",
"2#120" => "Caption/Abstract",
"2#122" => "Caption Writer/Editor",
"2#125" => "Rasterized Caption",
"2#130" => "Image Type",
"2#131" => "Image Orientation",
"2#135" => "Language Identifier",
"2#150" => "Audio Type",
"2#151" => "Audio Sampling Rate",
"2#152" => "Audio Sampling Resolution",
"2#153" => "Audio Duration",
"2#154" => "Audio Outcue",
"2#200" => "ObjectData Preview File Format",
"2#201" => "ObjectData Preview File Format Version",
"2#202" => "ObjectData Preview Data"
);
$size = getimagesize ( $image_path, $info);
if(is_array($info)) {
$iptc = iptcparse($info["APP13"]);
foreach (array_keys($iptc) as $s) {
$c = count ($iptc[$s]);
for ($i=0; $i <$c; $i++)
{
echo '
[*]'.$iptcTags[$s].' = '.$iptc[$s][$i].'
';
}
}
}
}