bbeny
bbeny

Reputation: 642

Is there a way to read image metadata using node.js

Does any one know of a way that I can read file metadata using node.js? For example, I want to read the 'comment' attribute on the 'details' tab of a jpeg file (on a Windows machine). See image below to understand what it is I am trying to read from the file's metadata.

enter image description here

Upvotes: 12

Views: 27312

Answers (1)

Brad
Brad

Reputation: 163272

There are a lot of NPM packages for reading EXIF data. For example:

https://www.npmjs.org/package/exif-parser

var parser = require('exif-parser').create(buffer);
var result = parser.parse();
console.log(result);

Upvotes: 23

Related Questions