<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Getting Photo Metadata (EXIF) Using Python</title>
	<atom:link href="http://www.blog.pythonlibrary.org/2010/03/28/getting-photo-metadata-exif-using-python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.pythonlibrary.org/2010/03/28/getting-photo-metadata-exif-using-python/</link>
	<description>Python Programming from the Frontlines</description>
	<lastBuildDate>Sun, 05 Feb 2012 20:38:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Diane</title>
		<link>http://www.blog.pythonlibrary.org/2010/03/28/getting-photo-metadata-exif-using-python/comment-page-1/#comment-22891</link>
		<dc:creator>Diane</dc:creator>
		<pubDate>Sun, 06 Jun 2010 04:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=745#comment-22891</guid>
		<description>For this post, we’ll take a look at the various 3rd party packages that give you access to this information.Thanks for the tips G-d bless ;-)</description>
		<content:encoded><![CDATA[<p>For this post, we’ll take a look at the various 3rd party packages that give you access to this information.Thanks for the tips G-d bless <img src='http://www.blog.pythonlibrary.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.blog.pythonlibrary.org/2010/03/28/getting-photo-metadata-exif-using-python/comment-page-1/#comment-20473</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 03 Apr 2010 15:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=745#comment-20473</guid>
		<description>@ Karl,

I didn&#039;t find that EXIF program/module. I&#039;ll have to take a look. Thanks!

@ fancy,

I was just showing an example. I would normally use os.path methods but wanted people to be able to follow this article easily. I will be writing about using EXIF data to expand my image viewer program soon.

@ Franz,

I thought pyexiv2 looked cool too and I appreciated its documentation. I hope to try it out on my laptop which has Python 2.6 on it.

@ Anthony,

I think I found another module that can write EXIF data...I might be thinking of that blogger&#039;s link that I mentioned at the end of the article.

Thanks for the information, fellows! 

- Mike</description>
		<content:encoded><![CDATA[<p>@ Karl,</p>
<p>I didn&#8217;t find that EXIF program/module. I&#8217;ll have to take a look. Thanks!</p>
<p>@ fancy,</p>
<p>I was just showing an example. I would normally use os.path methods but wanted people to be able to follow this article easily. I will be writing about using EXIF data to expand my image viewer program soon.</p>
<p>@ Franz,</p>
<p>I thought pyexiv2 looked cool too and I appreciated its documentation. I hope to try it out on my laptop which has Python 2.6 on it.</p>
<p>@ Anthony,</p>
<p>I think I found another module that can write EXIF data&#8230;I might be thinking of that blogger&#8217;s link that I mentioned at the end of the article.</p>
<p>Thanks for the information, fellows! </p>
<p>- Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.blog.pythonlibrary.org/2010/03/28/getting-photo-metadata-exif-using-python/comment-page-1/#comment-20472</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 03 Apr 2010 14:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=745#comment-20472</guid>
		<description>@ Everyone,

My new spam filter was doing too good a job and filtered out a bunch of comments. I apologize for that and will be more careful to check that in the future.

- Mike</description>
		<content:encoded><![CDATA[<p>@ Everyone,</p>
<p>My new spam filter was doing too good a job and filtered out a bunch of comments. I apologize for that and will be more careful to check that in the future.</p>
<p>- Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony Batchelor</title>
		<link>http://www.blog.pythonlibrary.org/2010/03/28/getting-photo-metadata-exif-using-python/comment-page-1/#comment-20431</link>
		<dc:creator>Anthony Batchelor</dc:creator>
		<pubDate>Tue, 30 Mar 2010 08:18:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=745#comment-20431</guid>
		<description>For the most part, pyexiv2 rocks.
It can read AND WRITE exif data to images.  This is important if you want to resize an image using PIL and keep the exif data.

Unfortunately, it chokes on writing some Canon specific tags...  There are bug reports about it, but they don&#039;t seem to be making any progress on them... :(</description>
		<content:encoded><![CDATA[<p>For the most part, pyexiv2 rocks.<br />
It can read AND WRITE exif data to images.  This is important if you want to resize an image using PIL and keep the exif data.</p>
<p>Unfortunately, it chokes on writing some Canon specific tags&#8230;  There are bug reports about it, but they don&#8217;t seem to be making any progress on them&#8230; <img src='http://www.blog.pythonlibrary.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Franz</title>
		<link>http://www.blog.pythonlibrary.org/2010/03/28/getting-photo-metadata-exif-using-python/comment-page-1/#comment-20429</link>
		<dc:creator>Franz</dc:creator>
		<pubDate>Tue, 30 Mar 2010 07:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=745#comment-20429</guid>
		<description>Mike,

pyexiv2&#039;s installation under win32 is a bit tricky, but since it is C-based, it rewards you with a much faster reading performance than EXIF.py. Furthermore, you also get write support for metadata, thus you can store photo captions as IPTC metadata, fix bad timestamps or even geo-tag your pictures.

For installing pyexiv2 under Python 2.5, please see Robin Mills pages on pyexiv2 (http://clanmills.com/articles/gpsexiftags/). Maybe he can also help out with a Python 2.5 build of the brand new pyexiv 0.2.0

Franz</description>
		<content:encoded><![CDATA[<p>Mike,</p>
<p>pyexiv2&#8242;s installation under win32 is a bit tricky, but since it is C-based, it rewards you with a much faster reading performance than EXIF.py. Furthermore, you also get write support for metadata, thus you can store photo captions as IPTC metadata, fix bad timestamps or even geo-tag your pictures.</p>
<p>For installing pyexiv2 under Python 2.5, please see Robin Mills pages on pyexiv2 (<a href="http://clanmills.com/articles/gpsexiftags/" rel="nofollow">http://clanmills.com/articles/gpsexiftags/</a>). Maybe he can also help out with a Python 2.5 build of the brand new pyexiv 0.2.0</p>
<p>Franz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fancy</title>
		<link>http://www.blog.pythonlibrary.org/2010/03/28/getting-photo-metadata-exif-using-python/comment-page-1/#comment-20427</link>
		<dc:creator>fancy</dc:creator>
		<pubDate>Tue, 30 Mar 2010 03:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=745#comment-20427</guid>
		<description>You should use escaped backslashes, os.path.join, or a raw string for path literals:

import exif
photo_path = r&quot;somePath\to\a\photo.jpg&quot;
data = exif.parse(photo_path)</description>
		<content:encoded><![CDATA[<p>You should use escaped backslashes, os.path.join, or a raw string for path literals:</p>
<p>import exif<br />
photo_path = r&#8221;somePath\to\a\photo.jpg&#8221;<br />
data = exif.parse(photo_path)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karl</title>
		<link>http://www.blog.pythonlibrary.org/2010/03/28/getting-photo-metadata-exif-using-python/comment-page-1/#comment-20413</link>
		<dc:creator>karl</dc:creator>
		<pubDate>Mon, 29 Mar 2010 03:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=745#comment-20413</guid>
		<description>You can use epinfo as well. It is much faster than anything else I have tried so far. PIL is a bit slow, but I haven&#039;t tried recently.

epinfo can be found here.
http://www.lightner.net/lightner/bruce/photopc/epinfo.html

for example to get the EXIF date, you could do:

epinfo $file &#124; grep DateTimeOriginal</description>
		<content:encoded><![CDATA[<p>You can use epinfo as well. It is much faster than anything else I have tried so far. PIL is a bit slow, but I haven&#8217;t tried recently.</p>
<p>epinfo can be found here.<br />
<a href="http://www.lightner.net/lightner/bruce/photopc/epinfo.html" rel="nofollow">http://www.lightner.net/lightner/bruce/photopc/epinfo.html</a></p>
<p>for example to get the EXIF date, you could do:</p>
<p>epinfo $file | grep DateTimeOriginal</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.337 seconds -->

