exify

1.0.0 • Public • Published

exify

Convert generic image filenames to filenames with EXIF creation dates.

build status dependency status dev dependency status

Example

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

Mehods

var exify = require('exify');

var e = exify(pattern)

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

e(file, cb (err, exified) {})

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

Installation

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

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0
  • 0.2.1
    0
  • 0.2.0
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i exify

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • uggedal