Home > database >  Reading complete metadata from images in Python
Reading complete metadata from images in Python

Time:12-21

I want to read the full list of metadata from images (e.g. jpg) as it is provided for example by ExifTool by Phil Harvey. I cannot use this command line tool and its Python wrapper exiftool due to security restrictions. Unfortunately other Python packages such as PIL only provide a fraction of the available metadata.

Is there any other Python library that provides the full image-metadata as it's returned by ExifTool?

CodePudding user response:

The closest you could come to exiftool would be exiv2. You might try the exiv2 python interface.

CodePudding user response:

I tried exiv2, but it also showed only the basic metadata.

The problem with exiftool was that it creates a temp. exe in the user folder, which was blocked by the system. But I found out that the directory can be changed by setting the PAR_GLOBAL_TEMP environment variable.

Another solution is https://oliverbetz.de/pages/Artikel/ExifTool-for-Windows

  • Related