Top-rated recipes tagged "exif"http://code.activestate.com/recipes/tags/exif/top/2014-12-11T10:07:39-08:00ActiveState Code RecipesEXIF-date-based JPEG files rename using PIL (Python)
2012-07-21T02:38:33-07:00Jorge Barnabyhttp://code.activestate.com/recipes/users/4182918/http://code.activestate.com/recipes/578219-exif-date-based-jpeg-files-rename-using-pil/
<p style="color: grey">
Python
recipe 578219
by <a href="/recipes/users/4182918/">Jorge Barnaby</a>
(<a href="/recipes/tags/date/">date</a>, <a href="/recipes/tags/exif/">exif</a>, <a href="/recipes/tags/jfif/">jfif</a>, <a href="/recipes/tags/jpeg/">jpeg</a>, <a href="/recipes/tags/jpg/">jpg</a>, <a href="/recipes/tags/photo/">photo</a>, <a href="/recipes/tags/pil/">pil</a>, <a href="/recipes/tags/rename/">rename</a>).
Revision 2.
</p>
<p>Rename JPEG files according to EXIF-date using PIL [library].</p>
<p>If global variable CREATE_HARDLINK is set, script creates Windows (XP) batch file
for creating hardlink version of source files.</p>
<p>PIL available here: <a href="http://www.pythonware.com/products/pil/" rel="nofollow">http://www.pythonware.com/products/pil/</a></p>
Redate pictures with EXIF (Python)
2009-06-29T03:06:01-07:00Ivan Koblikhttp://code.activestate.com/recipes/users/4168407/http://code.activestate.com/recipes/576822-redate-pictures-with-exif/
<p style="color: grey">
Python
recipe 576822
by <a href="/recipes/users/4168407/">Ivan Koblik</a>
(<a href="/recipes/tags/creation_date/">creation_date</a>, <a href="/recipes/tags/date/">date</a>, <a href="/recipes/tags/exif/">exif</a>, <a href="/recipes/tags/modification_date/">modification_date</a>, <a href="/recipes/tags/picture/">picture</a>, <a href="/recipes/tags/video/">video</a>).
Revision 2.
</p>
<p>Reads creation date from EXIF picture/video file header, and sets it to the file's creation and modification dates. This script differs from other recipes in its ability to work with the creation date in Windows.
The script depends on several libraries: Win32 Extensions, pyexif, exif. <a href="http://koblik.blogspot.com/2009/06/exif-with-python.html">Here's</a> description of what they do and where to get them.</p>
EXIF-date-based JPEG files rename using PIL (Python)
2009-02-10T07:28:48-08:00Denis Barmenkovhttp://code.activestate.com/recipes/users/57155/http://code.activestate.com/recipes/576646-exif-date-based-jpeg-files-rename-using-pil/
<p style="color: grey">
Python
recipe 576646
by <a href="/recipes/users/57155/">Denis Barmenkov</a>
(<a href="/recipes/tags/date/">date</a>, <a href="/recipes/tags/exif/">exif</a>, <a href="/recipes/tags/jfif/">jfif</a>, <a href="/recipes/tags/jpeg/">jpeg</a>, <a href="/recipes/tags/jpg/">jpg</a>, <a href="/recipes/tags/photo/">photo</a>, <a href="/recipes/tags/pil/">pil</a>, <a href="/recipes/tags/rename/">rename</a>).
Revision 4.
</p>
<p>Rename JPEG files according to EXIF-date using PIL [library].</p>
<p>If global variable CREATE_HARDLINK is set, script creates Windows (XP) batch file
for creating hardlink version of source files.</p>
<p>PIL available here: <a href="http://www.pythonware.com/products/pil/" rel="nofollow">http://www.pythonware.com/products/pil/</a></p>
JPG files redater by EXIF data (Python)
2014-12-11T10:07:39-08:00Michal Niklashttp://code.activestate.com/recipes/users/186902/http://code.activestate.com/recipes/550811-jpg-files-redater-by-exif-data/
<p style="color: grey">
Python
recipe 550811
by <a href="/recipes/users/186902/">Michal Niklas</a>
(<a href="/recipes/tags/date/">date</a>, <a href="/recipes/tags/exif/">exif</a>, <a href="/recipes/tags/e_uae/">e_uae</a>, <a href="/recipes/tags/files/">files</a>, <a href="/recipes/tags/jpeg/">jpeg</a>, <a href="/recipes/tags/jpg/">jpg</a>, <a href="/recipes/tags/pil/">pil</a>).
Revision 6.
</p>
<p>Iterates through a directory, reading the EXIF data from each jpg/jpeg file.
Parses the date/time from EXIF data and:</p>
<ol>
<li>if it differs from file modification date/time then changes file date/time</li>
<li>moves file to <code>YYYY/YYYY_MM_DD</code> directory</li>
</ol>
Cataloging and adding IPTC keywords to digital photos (Python)
2007-01-19T13:38:49-08:00Chad Cooperhttp://code.activestate.com/recipes/users/4023200/http://code.activestate.com/recipes/500266-cataloging-and-adding-iptc-keywords-to-digital-pho/
<p style="color: grey">
Python
recipe 500266
by <a href="/recipes/users/4023200/">Chad Cooper</a>
(<a href="/recipes/tags/exif/">exif</a>, <a href="/recipes/tags/graphics/">graphics</a>, <a href="/recipes/tags/iptc/">iptc</a>, <a href="/recipes/tags/photography/">photography</a>).
</p>
<p>This script helps me manage my digital photos by filing them in a directory
based on the EXIF date and applying keywords and by-line information to the IPTC
metadata.</p>
Sort images from different sources by picture taken date (Exif) (Python)
2013-09-24T12:43:31-07:00Rutger Saalminkhttp://code.activestate.com/recipes/users/4187940/http://code.activestate.com/recipes/578672-sort-images-from-different-sources-by-picture-take/
<p style="color: grey">
Python
recipe 578672
by <a href="/recipes/users/4187940/">Rutger Saalmink</a>
(<a href="/recipes/tags/chronological/">chronological</a>, <a href="/recipes/tags/exif/">exif</a>, <a href="/recipes/tags/image/">image</a>, <a href="/recipes/tags/order/">order</a>, <a href="/recipes/tags/photo/">photo</a>, <a href="/recipes/tags/picture/">picture</a>).
Revision 3.
</p>
<p>On some occasions/events, pictures will be taken by different camera's, mobile phones, etc. In order to sort these photos chronologically, it does not suffice using the file's date modified/created set by the OS. The following script obtains, from multiple sources, the pictures' taken date stored in the accompanying Exif data and outputs them all chronologically in a single directory.</p>