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

gps.toDate is not a function #3

Closed
Christian24 opened this issue Mar 19, 2017 · 2 comments
Closed

gps.toDate is not a function #3

Christian24 opened this issue Mar 19, 2017 · 2 comments
Labels

Comments

@Christian24
Copy link

Hello,

I am having trouble with the package. This is the issue I am getting when trying to read exif data:

TypeError: gps.toDate is not a function
    at TagsTask.extractTzoffset (E:\photos\node_modules\exiftool-vendored\dist\tags_task.js:64:41)
    at TagsTask.parseTags (E:\photos\node_modules\exiftool-vendored\dist\tags_task.js:72:14)
    at TagsTask.parse (E:\photos\node_modules\exiftool-vendored\dist\tags_task.js:46:21)
    at TagsTask.Task.onData (E:\photos\node_modules\exiftool-vendored\dist\task.js:26:31)
    at ExifToolProcess.onData (E:\photos\node_modules\exiftool-vendored\dist\exiftool_process.js:137:22)
    at Socket.<anonymous> (E:\photos\node_modules\exiftool-vendored\dist\exiftool_process.js:40:65)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)

I am on node 6.10.0.

Thanks a lot,
Christian

@mceachen
Copy link
Member

Could you attach that file's tags? Something like

exiftool -j file.jpg > file-to-attach.json

@mceachen mceachen added the bug label Mar 27, 2017
@mceachen
Copy link
Member

Assuming the GPS tag contents are invalid, I put guards around the values and added a breaking test, and pushed v2.12.0 with this fix. Please attach the tag contents even though this ticket is closed, and holler if this diff didn't fix it.

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

No branches or pull requests

2 participants