Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getImageTags Both err and tags are null #52

Open
AnthoniG opened this issue Mar 16, 2018 · 0 comments
Open

getImageTags Both err and tags are null #52

AnthoniG opened this issue Mar 16, 2018 · 0 comments

Comments

@AnthoniG
Copy link

I am trying to get this working but having no success.
Am on linux mint 18 and I've installed the exiv dependencies like it suggested.

Then I npm installed it and did the example on the front page

const ex = require('exiv2');

console.log('Library ', ex);

ex.getImageTags('./photo.png', function(err, tags) {
  if(err) {
    console.error('Error Reading Image', err);
    return;
  }
  
  if(!tags) {
    console.error('Tags was null');
    return;
  }
  
  console.log("DateTime: " + tags["Exif.Image.DateTime"]);
  console.log("DateTimeOriginal: " + tags["Exif.Photo.DateTimeOriginal"]);
});

However when I look into the function, both err and tags are not defined. Anyone have a clue what's going on please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant