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

后端 未结 1 873
北海茫月
北海茫月 2020-12-03 08:48

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 Wi

相关标签:
1条回答
  • 2020-12-03 09:28

    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);
    
    0 讨论(0)
提交回复
热议问题