Popular recipes tagged "jpg"http://code.activestate.com/recipes/tags/jpg/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> 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>