exif-distage
Get age in h:m:s format (from a supplied dateTime) and distance in meters (from supplied GPS lat, lon) of an image with an EXIF source.
Last updated 5 years ago by elgubenis .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install exif-distage 
SYNC missed versions from official npm registry.

exif-distage

Get age in h:m:s format (from a supplied dateTime) and/or distance in meters (from supplied GPS lat, lon) of an image with an EXIF source.

Install

$ npm install exif-distage --save

Testing (with mocha)

$ cd /node_modules/exif-distage
$ npm test

How to use

In Javascript
var distage = require('exif-distage');
distage.parse('image.jpg', new Date(), [19.003725787037036, 99.00135592592591], function(err, response) {
  if (err) { throw err };
  console.log(response);
});
var distage = require('exif-distage');
distage.parse('image.jpg', [19.003725787037036, 99.00135592592591], new Date(), function(err, response) {
  if (err) { throw err };
  console.log(response);
});
var distage = require('exif-distage');
distage.parse('image.jpg', [19.003725787037036, 99.00135592592591], function(err, response) {
  if (err) { throw err };
  console.log(response);
});
var distage = require('exif-distage');
distage.parse('image.jpg', new Date(), function(err, response) {
  if (err) { throw err };
  console.log(response);
});
should return an object similar to this
{
    age: {
        h: 1,
        m: 0,
        s: 0
    },
    queryTimestamp: 1429024373,
    creationTimestamp: 1429020773,
    distance: 1000000
}

License

MIT

Current Tags

  • 0.1.8                                ...           latest (5 years ago)

10 Versions

  • 0.1.8                                ...           5 years ago
  • 0.1.7                                ...           5 years ago
  • 0.1.6                                ...           5 years ago
  • 0.1.5                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 1
Last Month 5
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |