Does anyone else on this forum use IPTC (Photoshop "File Info") for adding
caption/keywords to their images?
I've tried Jan's code but it still doesn't copy the caption field into the description field.
I figured out why the thumbs weren't showing up, but still would like to nail down this other issue. It would make things so much easier to have this data automatically copy over.
I'd like to do the same for the IPTC keywords to Description keywords but for now, I'd settle just the caption info.
I'm using 1.7.
I understand others have gotten it to work in 1.6 but I'd really like to know if it's possible under 1.7 before having to downgrade.
Here is the new checkimages.php code that Jan sent me. If anyone can test this or has gotten it to work, please let me know.
Thanks
Rob
File: checkimages.php
Replace (line309):
$title = $lang['field_description_ext'].((isset($file_src)) ? get_iptc_insert_link($file_src, "caption", "image_description_".$i) : "");
show_textarea_row($title, "image_description_".$i, "", $textarea_size);
With:
$title = $lang['field_description_ext'].((isset($file_src)) ? get_iptc_insert_link($file_src, "caption", "image_description_".$i) : "");
$caption = "";
if ($imageinfo = @getimagesize($file_src, $info)) {
if (isset($info['APP13'])) {
$iptc = iptcparse($info['APP13']);
if (is_array($iptc)) {
$caption = (isset($iptc['2#120'][0])) ? $iptc['2#120'][0] : "";
foreach ($iptc['2#025'] as $val) {
$caption .= (($caption != "" ) ? " " : "").$val;
}
}
}
}
show_textarea_row($title, "image_description_".$i, $caption, $textarea_size);