
block_size = 4096 # This code has been adapted from Lib/os.py in the Python source tree # (sha1 265e36e277f3) def _fscodec (): encoding = sys.


The standard value # should be fine, though other values might give better performance in # some cases. Example usage:: import exiftool files = with exiftool.ExifTool() as et: metadata = et.get_metadata_batch(files) for d in metadata: print("" # The block size when reading from exiftool. _tarball: PyExifTool is licenced under GNU GPL version 3 or later. _ExifTool: The source code can be checked out from the github repository with :: git clone git:///smarnach/pyexiftool.git Alternatively, you can download a tarball_. This is much more efficient than launching a separate process for every single query. Since ``exiftool`` is run in batch mode, only a single instance needs to be launched and can be reused for many queries. The library provides the class :py:class:`ExifTool` that runs the command-line tool in batch mode and features methods to send commands to that program, including methods to extract meta-information from one or more image files. # NOTE: # Maik Riechert: added 'nums' argument to use/not use -n flag # if nums=False, then each tag can be suffixed with '#' to apply -n individually # () # Maik Riechert: added 'copy_tags(from,to)' to copy EXIF tags from one file to another """ PyExifTool is a Python library to communicate with an instance of Phil Harvey's excellent ExifTool_ command-line application. # PyExifTool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # PyExifTool is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the licence, or # (at your option) any later version, or the BSD licence.

# -*- coding: utf-8 -*- # PyExifTool # Copyright 2012 Sven Marnach # This file is part of PyExifTool.
