exifier

Transform stream which reads generic image filenames and writes filenames with EXIF creation dates

exifier

Transform stream which reads generic image filenames and writes both the generic src and the dest filenames with EXIF creation dates.

var exifier = require('exifier')('%Y/%m/%d_%H-%M-%S');
 
exifier.on('data', function(obj) {
  console.log('exified:', obj);
});
 
exifier.on('skip', function (err) {
  console.error('skipped:', err);
});
 
exifier.write('test/img/hasselblad.jpg');
exifier.write('README.md');

Return a transform stream which reads file paths and writes {src: '', dest: ''} objects based on the given strftime(3) compatible pattern.

A cryptographic hash is appended to the dest name if an optional {hash: true} opts object is passed.

For every unparsable file this event fires.

Install the exiv2 library and headers with your platform's native package manager:

apt-get install libexiv2 libexiv2-dev
brew install pkg-config exiv2
pacman -S exiv2

Install the NPM module:

npm install exifier

MIT