Reputation: 149
What I want to do is read metadata from a tiff image from nodejs, this image come from a scientific device and has some specific information. In linux I have installed exiftool and it retrive correctly all metadata of that image.
The problem is in nodejs, I have tried many modules but nobody of them works, for example I've installed exif-parser that is one of the most popular and tried to do this:
var buffer = readSync('./example_image.tif');
var parser = require('exif-parser').create(buffer);
var result = parser.parse();
But appears this error: "JPEG section offset"
Upvotes: 3
Views: 2281
Reputation: 21
I've solved this problem using the library exif-vendored. Consulnting the documentation I've seen that there's the possibility to specify a certain "custom" tag to read. I've tried all exif libraries but I think that's the only that can read custom tag from a TIFF file
Upvotes: 2