WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Adding FastStone's Comment as image description (1 post)

  1. ebraatv
    Member
    Posted 2 years ago #

    Hi,
    I've just modified my copy of meta.php to include FastStone Image Viewer's Comment (which is stored as a file comment, not Exif).

    Just wondered if it's possible to include this in later releases?

    Here's my additions:
    Around line 150, before the ...WINXP.. test:

    //3sep11 ebraatv: Use FastStone's comments if found
    if ( isset($this->exif_data['COMMENT']))
    $meta['caption'] = utf8_encode($this->exif_data['COMMENT'][0]);

    I also removed the duplication of title as description if you use Properties in Windows to modify XMP data, around line 270:
    //3sep11 ebraatv: Do not use windows' duplicated title as caption...
    case 'dc:description':
    if ($xmlarray[$key] != $xmlarray['dc:title'])
    $this->xmp_array[$value] = $xmlarray[$key];
    break;

    http://wordpress.org/extend/plugins/nextgen-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.