
Stdout=subprocess.PIPE, stderr=subprocess. It can give metadata for most of the file formats but gives less information than Exif tool. You can rightly assign the various files and get the data exported. 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. Choose the option Images in the export page and just click the continue button. 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)
#Photos metadata export how to#
''' use Exif tool to get the metadata ''' The tool is already optimized for Google Takeout pictures and videos so you dont have to figure out how to restore the exif metadata yourself. ( 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.
