

Stdout=subprocess.PIPE, stderr=subprocess. It can give metadata for most of the file formats but gives less information than Exif tool. Similar to exif tool, it is also a command line tool except that it's a python packageĪnd user can install it using pip install hachoir. However the drawback of using this method is it doesn't works with all the images. Refer any of the other post for this method. Thumbnail Image : (Binary data 5448 bytes, use -b option to extract) Interoperability Index : R98 - DCF basic file (sRGB)Įncoding Process : Baseline DCT, Huffman coding InfoDict.strip()] = line.strip()įull Tag list is here: """ ExifTool Version Number : 11.63ĭirectory : /Projects/ImageMetaData/ImagesĮxif Byte Order : Little-endian (Intel, II)Ĭanon Firmware Version : Firmware Version 1.10 Process = subprocess.Popen(,stdout=subprocess.PIPE, stderr=subprocess.STDOUT,universal_newlines=True) 圆4 bit version: to export and import from/to MS Excel, you should have the following software installed on your. Exif Pilot 6.19.0, 圆4 bit (5.1 Mb) this version is recommended for exif-processing of large image files (>100 Mb). Exif Pilot 6.19.0, x32 bit (4.8 Mb) basic version. ''' use Exif tool to get the metadata ''' Download free EXIF editor for Windows XP/Vista/7/8/10/11. ( infoDict = #Creating the dict to get the metadata tagsĮxifToolPath = 'D:/ExifTool/exifTool.exe' #for Windows user have to specify the Exif tool exe path for metadata extraction. Please refer the below code snippet to get the meta data using exif tool. It is a command line tool and to use it in Python user have to create a subprocess and pass the tool and image file path as an argument. This is recommended approach to get the meta data as it gives more tags than any other way.

You can now run ExifTool anywhere in your terminal by typing exiftool. You can install ExifTool on Ubuntu using the apt utility

There is couple of ways by which you can get the data from the file.
