nathanpeck / exiftool

A Node.js wrapper around exiftool, providing metadata extraction from numerous audio, video, document, and binary filetypes
MIT License
81 stars 26 forks source link

Filter returns full meta info #24

Closed nodoubtman closed 2 years ago

nodoubtman commented 2 years ago

`var exif = require('exiftool'); var fs = require('fs');

fs.readFile('spot-esp32.jpg', ['encodingProcess'], function (err, data) { if (err) throw err; else { exif.metadata(data, function (err, metadata) { if (err) throw err; else console.log(metadata); }); } }); `

[ exiftoolVersionNumber: 11.16, fileType: 'JPEG', fileTypeExtension: 'jpg', mimeType: 'image/jpeg', jfifVersion: 1.01, resolutionUnit: 'inches', xResolution: 96, yResolution: 96, exifByteOrder: 'Big-endian (Motorola, MM)', orientation: 'Horizontal (normal)', imageWidth: 320, imageHeight: 240, encodingProcess: 'Baseline DCT, Huffman coding', bitsPerSample: 8, colorComponents: 3, yCbCrSubSampling: 'YCbCr4:2:0 (2 2)', imageSize: '320x240', megapixels: 0.077 ]

Same output as filter or not

can you help? thanks. Marc.

nodoubtman commented 2 years ago

ok