exiv2node icon indicating copy to clipboard operation
exiv2node copied to clipboard

New api call: getImageMeta()

Open dberesford opened this issue 11 years ago • 2 comments

Returns the following image properties (which are not tags but still very handy to have when processing images):

{ fileName: '/path/books.jpg',
  fileSize: '993738',
  mimeType: 'image/jpeg',
  pixelHeight: '1200',
  pixelWidth: '1600' }

Exiv2 also outputs these by default, along with the high level summary exif tags.

dberesford avatar May 26 '14 18:05 dberesford

This needs to be reworked to use NAN.

I'd suggest skipping the filename since that's passed in. I've also been thinking about how we could pass in the file contents as a buffer or filename. In the case of reading from a buffer there would be no filename. The other properties seem like they'd work though.

drewish avatar Mar 12 '15 04:03 drewish

@drewish It looks like @bertrandom implemented reading/writing using Buffer at https://github.com/bertrandom/exiv2node-buffers, but it's definitely quite out of date. (it at least won't compile on Node.js v5.3.0)

@dberesford I'd love to see this PR updated to use NAN; I've also wanted to get this info along with the standard metadata tags.

whitelynx avatar Jan 23 '16 02:01 whitelynx