pyguymer3.image.load_EXIF

pyguymer3.image.load_EXIF(fName, /, *, cacheDir='~/.cache/pyguymer3', compressed=False, debug=True, ensureNFC=True, exiftoolPath=None, python=True, timeout=60.0)[source]

Run the “exifread” module or the “exiftool” binary on a file and return the metadata.

Parameters:
  • fName (str) – the file to be surveyed

  • cacheDir (str, optional) – if a string, then it is the path to the local cache of “exifread” and “exiftool” JSON output so as to save time in future calls

  • compressed (bool, optional) – the file is compressed

  • debug (bool, optional) – print debug messages

  • ensureNFC (bool, optional) – ensure that the Unicode encoding is NFC

  • exiftoolPath (str, optional) – the path to the “exiftool” binary (if not provided then Python will attempt to find the binary itself)

  • timeout (float, optional) – the timeout for any requests/subprocess calls

Returns:

ans – the metadata

Return type:

dict

Notes

Copyright 2017 Thomas Guymer [1]

References