[Plugin: NextGEN Gallery] fix: import XMP meta data
-
importing XMP meta data with version 0.99 on apache 2 + php 5 did not work (for me) so i changed the code in the file lib/nggmeta.lib.php around lines 207~ (funtion extract_XMP) from :
ob_start();
@readfile($filename);
$source = ob_get_contents();
ob_end_clean();to:
$source = file_get_contents ($filename);
(according to php5 manual)and now it works fine.
===
i also added a few more fields to the import schema
(here is the full block)// ——— Some values from the XMP format——— //
$xmpTags = array (
‘xap:CreateDate’ => ‘created_timestamp’,
‘xap:ModifyDate’ => ‘last_modfied’,
‘xap:CreatorTool’ => ‘tool’,
‘dc:format’ => ‘format’,
‘dc:title’ => ‘title’,
‘dc:creator’ => ‘author’,
‘dc:subject’ => ‘keywords’,
‘dc:description’ => ‘caption’,
‘photoshop:AuthorsPosition’ => ‘position’,
‘photoshop:City’ => ‘city’,
‘photoshop:Country’ => ‘country’,
‘photoshop:Headline’ => ‘headline’,
‘Iptc4xmpCore:CiEmailWork’ => ’email’
);i use digikam (linux/kde) photo management application that has allot of XMP fields that can be used. i guess that in the following week or so i will be implementing more fields (so stay tuned ??
btw,
awesome plugging !!! thank you very much for you work.
??
- The topic ‘[Plugin: NextGEN Gallery] fix: import XMP meta data’ is closed to new replies.