Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 641
bbeny Avatar asked Sep 29 '14 02:09

bbeny


1 Answers

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);
like image 173
Brad Avatar answered Oct 05 '22 23:10

Brad