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

-J exports incorrectly outputs ExifToolVersion as a float #262

Open
danielhoherd opened this issue Apr 24, 2024 · 2 comments
Open

-J exports incorrectly outputs ExifToolVersion as a float #262

danielhoherd opened this issue Apr 24, 2024 · 2 comments

Comments

@danielhoherd
Copy link

When using exiftool -J the ExifToolVersion value is output as a float, which does not make sense for a version string. The result is that a version like 12.60 is treated as 12.6 which is a significantly different value.

$ exiftool -J -ExifToolVersion test.heic
[{
  "SourceFile": "test.heic",
  "ExifToolVersion": 12.60
}]
$ exiftool -J -ExifToolVersion test.heic | jq .
[
  {
    "SourceFile": "test.heic",
    "ExifToolVersion": 12.6
  }
]
@StarGeekSpaceNerd
Copy link
Collaborator

See this post

The values output by exiftool are not typed, which leads to problems when converting for the JSON output. If it looks like a number, then ExifTool writes a JSON number, otherwise it quotes it as a string.

@danielhoherd
Copy link
Author

@StarGeekSpaceNerd That post seems to describe the problem pretty well. I thought it was just the version string, but it appears to be everything.

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

2 participants