How to use the exif.Image function in exif

To help you get started, we’ve selected a few exif examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gilesknap / gphotos-sync / gphotos / LocalFilesMedia.py View on Github external
def get_exif(self):
        try:
            with open(str(self.relative_folder / self.filename),
                      'rb') as image_file:
                self.__exif = exif.Image(image_file)
            self.got_meta = True
        except (IOError, AssertionError):
            self.got_meta = False

exif

Read and modify image EXIF metadata using Python.

MIT
Latest version published 2 years ago

Package Health Score

72 / 100
Full package analysis