Skip to content

Instantly share code, notes, and snippets.

@ca057
Last active May 7, 2022 16:37
Show Gist options
  • Save ca057/b4dc3128234d03045ef8b881833e3da5 to your computer and use it in GitHub Desktop.
Save ca057/b4dc3128234d03045ef8b881833e3da5 to your computer and use it in GitHub Desktop.
Extracting EXIF data into JSON

command line tools for working with images to json

Extract all exif data as list into a json file:

exiftool -j -q dir > data.json

Sort the exif data by the original creation time:

jq 'sort_by(.DateTimeOriginal)' data.json

Extract exif data and sort by original creation time:

exiftool -j -q *.jpg | jq 'sort_by(.DateTimeOriginal)' > data.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment