Skip to content

oaleynik/iptc-reader

Repository files navigation

iptc-reader Build Status

Parse IPTC directory from buffer (similar to devongovett/exif-reader)

Install

$ npm install --save iptc-reader

Usage

var iptc = require('iptc-reader');

// decode raw iptc data from a buffer
var metadata = iptc(buf);

Output:

{ keywords: [ 'some', 'useful', 'tags' ],
  dateCreated: '20170101',
  byline: 'Author Name',
  copyright: 'Copyright © Copyright',
  caption: 'I\'ve taken this image during our short stop in wonderland' }

Supported tags

caption, credit, keywords, dateCreated, byline, bylineTitle, captionWriter, headline, copyright, category

License

MIT © Oleh Aleinyk