News:

If this site goes down it is because of the crappy DreamHost web hosting: They will disable your "unlimited traffic" web server if a single bot hammers the site with a moderate load.  If necessary, an alternate ExifTool forum page is available at https://sourceforge.net/p/exiftool/discussion/

Main Menu

Python - Extracting EXIF Information

Started by AJ, June 14, 2022, 05:39:52 PM

Previous topic - Next topic

AJ

I'm building an application with students and one of the features we wanted to implement is the ability to view Exif information. They are coding the application in Python and they are only able to retrieve minimal Exif information. They mentioned there are no Python resources that allows them to extract the full Exif data or integrate the Exiftool functionality. Any advice on how to intergrade the Exiftool within a Python application would be greatly appreciated.

StarGeek

Have you taken a look at PyExifTool (Github repo), a python wrapper for exiftool?

I believe it uses the -stay_open option and -@ (Argfile) option, which keep exiftool running in the background so commands can be sent and data extracted without having to run exiftool once for every command.  Because exiftool's biggest performance hit is it's startup time, it is not recommend to run it once for every command.  See Common Mistake #3.
Troubleshooting hints:
* Did you read FAQ #3 and use the command listed there?
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.

AJ

Thank you for the reply. We're familiar with the PyExifTool. Yes, that's one of the things they were concerned with; running command line. I will let them know what you mentioned about running it in the background.

Their main concern is that there isn't a suitable Python library that integrates with web applications to extract the full Exif data and building one from scratch with the limited time they have is not possible.  I should have mentioned that the application is a web application.