Skip to content

A node.js library to extract IPTC data from image headers

License

Notifications You must be signed in to change notification settings

derekbaron/node-iptc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-iptc

This module extracts IPTC information from JPEG files. IPTC is (mostly non-technical) structured metadata about the image with fields like creator/artist, copyright, keywords, category, etc.
For more information, see: http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_38034

Installation

Installing using npm:

npm install node-iptc

Example

  var iptc = require('node-iptc')
  
  fs.readFile("myImage.jpeg", function(err, data) {
      if (err) { throw err }
      var iptc_data = iptc(data);
    });

Sample output

{
   "by_line": [
     "Ralf Roletschek"
   ],
   "date_created": "20111119",
   "time_created": "195544+0000",
   "copyright_notice": "(C) Ralf Roletschek",
   "date_time": "2011-12-19T19:55:44.000Z"
 }

About

A node.js library to extract IPTC data from image headers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published