exify

Convert generic image filenames to filenames with EXIF creation dates

exify

Convert generic image filenames to filenames with EXIF creation dates.

var exify = require('exify')('%Y/%m/%d_%H-%M-%S');
 
exify('test/img/hasselblad.jpg', function (errexified) {
  if (err) return console.error(err);
  console.log(exified);
});
var exify = require('exify');

Return a function which generates filenames based on EXIF tags of source images and the provided strftime(3) compatible pattern.

Generate a new filename based on the given file and previously provided pattern.

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 exify

MIT