/usr/lib/python2.7/dist-packages/ExifRead-1.4.2.egg-info is in python-exif 1.4.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | Metadata-Version: 1.1
Name: ExifRead
Version: 1.4.2
Summary: Read Exif metadata from tiff and jpeg files.
Home-page: https://github.com/ianare/exif-py
Author: Ianaré Sévi
Author-email: ianare@gmail.com
License: BSD
Description: EXIF.py
=======
.. image:: https://pypip.in/v/ExifRead/badge.png
:target: https://crate.io/packages/ExifRead
.. image:: https://pypip.in/d/ExifRead/badge.png
:target: https://crate.io/packages/ExifRead
Python library to extract EXIF data from tiff and jpeg files.
Originally written by Gene Cash / Thierry Bousch.
************
Installation
************
PyPI
****
The recommended process is to install the PyPI package, as it allows easily staying up to date::
$ pip install exifread
See the `pip documentation <http://www.pip-installer.org/en/latest/>`_ for more info.
Archive
*******
Download an archive from the project's `releases page <https://github.com/ianare/exif-py/releases>`_.
Extract and enjoy.
*****
Usage
*****
Command line
************
::
$ EXIF.py image.jpg
Show command line options::
$ EXIF.py
Python Script
*************
::
import exifread
# Open image file for reading (binary mode)
f = open(path_name, 'rb')
# Return Exif tags
tags = exifread.process_file(f)
*Note:* if you use this library in your project as a Git submodule, you may need to do::
from <submodule_folder> import EXIF
or::
from <submodule_folder> import exifread
Returned tags will be a dictionary mapping names of Exif tags to their
values in the file named by path_name.
You can process the tags as you wish. In particular, you can iterate through all the tags with::
for tag in tags.keys():
if tag not in ('JPEGThumbnail', 'TIFFThumbnail', 'Filename', 'EXIF MakerNote'):
print "Key: %s, value %s" % (tag, tags[tag])
An ``if`` statement is used to avoid printing out a few of the tags that tend to be long or boring.
The tags dictionary will include keys for all of the usual Exif tags, and will also include keys for
Makernotes used by some cameras, for which we have a good specification.
Note that the dictionary keys are the IFD name followed by the tag name. For example::
'EXIF DateTimeOriginal', 'Image Orientation', 'MakerNote FocusMode'
****************
Tag Descriptions
****************
Tags are divided into these main categories:
- ``Image``: information related to the main image (IFD0 of the Exif data).
- ``Thumbnail``: information related to the thumbnail image, if present (IFD1 of the Exif data).
- ``EXIF``: Exif information (Exif sub-IFD).
- ``MakerNote``: Manufacturer specific information. There are no official published references for these tags.
In some cases there is also a GPS sub-IFD.
******************
Processing Options
******************
These options can be used both in command line mode and within a script.
Faster Processing
*****************
Don't process makernote tags, don't extract the thumbnail image (if any).
Pass the ``-q`` or ``--quick`` command line arguments, or as::
tags = exifread.process_file(f, details=False)
Stop at Given Tag
*****************
To stop processing the file after a specified tag is retrieved.
Pass the ``-t TAG`` or ``--stop-tag TAG`` argument, or as::
tags = exifread.process_file(f, stop_tag='TAG')
where ``TAG`` is a valid tag name, ex ``'DateTimeOriginal'``.
*The two above options are useful to speed up processing of large numbers of files.*
Strict Processing
*****************
Return an error on invalid tags instead of silently ignoring.
Pass the ``-s`` or ``--strict`` argument, or as::
tags = exifread.process_file(f, strict=True)
Keywords: exif image metadata photo
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.5
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Utilities
|