<?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: Reading out EXIF data via Python</title>
	<atom:link href="http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python/feed" rel="self" type="application/rss+xml" />
	<link>http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python</link>
	<description>all the other blogs have such cool names, I don't know one ...</description>
	<pubDate>Thu, 09 Feb 2012 17:00:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bob Wiliiams</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python/comment-page-1#comment-368083</link>
		<dc:creator>Bob Wiliiams</dc:creator>
		<pubDate>Wed, 18 Mar 2009 16:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python#comment-368083</guid>
		<description>Personally I like EXIF.py with is totally self contained and works well.  It's easy to use.  It is a sourceforge project, but the official release didn't work for me and I used a bug-fix version I found here:

http://www.dudek.org/blog/154

I think the bug-fix version is mostly needed of the unusual EXIF formatting you get from some versions of iphoto.</description>
		<content:encoded><![CDATA[<p>Personally I like EXIF.py with is totally self contained and works well.  It&#8217;s easy to use.  It is a sourceforge project, but the official release didn&#8217;t work for me and I used a bug-fix version I found here:</p>
<p><a href="http://www.dudek.org/blog/154" rel="nofollow">http://www.dudek.org/blog/154</a></p>
<p>I think the bug-fix version is mostly needed of the unusual EXIF formatting you get from some versions of iphoto.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nare</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python/comment-page-1#comment-238636</link>
		<dc:creator>Nare</dc:creator>
		<pubDate>Fri, 11 Jul 2008 08:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python#comment-238636</guid>
		<description>Hi Towi,

Can u provide me \&#34;photoshopy.py\&#34;</description>
		<content:encoded><![CDATA[<p>Hi Towi,</p>
<p>Can u provide me \&quot;photoshopy.py\&quot;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wolfram</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python/comment-page-1#comment-209</link>
		<dc:creator>Wolfram</dc:creator>
		<pubDate>Mon, 10 Apr 2006 11:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python#comment-209</guid>
		<description>btw Pierre, actually it's a little bit the same as it was a couple years ago with Mac OS and Windows, I switched to Mac OS because I wanted less trouble with the computer caused by viruses etc. (a computer causes enough trouble besides, so avoid those at least).
Now with PHP and Python, actually the feeling was the same, just use the (less common) language that has less _known_ issues, just to ship around those problems by default. Yes, that was one of my main reasons why to switch to Python ... that it didn't quite work out yet is written on another piece of paper ...</description>
		<content:encoded><![CDATA[<p>btw Pierre, actually it&#8217;s a little bit the same as it was a couple years ago with Mac OS and Windows, I switched to Mac OS because I wanted less trouble with the computer caused by viruses etc. (a computer causes enough trouble besides, so avoid those at least).<br />
Now with PHP and Python, actually the feeling was the same, just use the (less common) language that has less _known_ issues, just to ship around those problems by default. Yes, that was one of my main reasons why to switch to Python &#8230; that it didn&#8217;t quite work out yet is written on another piece of paper &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: towi</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python/comment-page-1#comment-205</link>
		<dc:creator>towi</dc:creator>
		<pubDate>Fri, 07 Apr 2006 15:03:07 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python#comment-205</guid>
		<description>Hi,

I use Photoshop to read nearly all EXIF data. I have a photoshopy.py module and use the COM+ typelib to remote control photoshop. If you are interested I can send you more detail. It works something like this:

app = photoshopy.Application()
doc = app.Load("MyImg.jpg")
print doc.EXIF[u"Author"]
print doc.EXIF[u"Aparture"]

I don't have the script right here, but its quite easy...

tschau, towi.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I use Photoshop to read nearly all EXIF data. I have a photoshopy.py module and use the COM+ typelib to remote control photoshop. If you are interested I can send you more detail. It works something like this:</p>
<p>app = photoshopy.Application()<br />
doc = app.Load(&#8221;MyImg.jpg&#8221;)<br />
print doc.EXIF[u"Author"]<br />
print doc.EXIF[u"Aparture"]</p>
<p>I don&#8217;t have the script right here, but its quite easy&#8230;</p>
<p>tschau, towi.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Vermeulen</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python/comment-page-1#comment-195</link>
		<dc:creator>Stephen Vermeulen</dc:creator>
		<pubDate>Mon, 03 Apr 2006 18:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python#comment-195</guid>
		<description>You might also want to look at:

http://www.emilas.com/jpeg/</description>
		<content:encoded><![CDATA[<p>You might also want to look at:</p>
<p><a href="http://www.emilas.com/jpeg/" rel="nofollow">http://www.emilas.com/jpeg/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Horton</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python/comment-page-1#comment-194</link>
		<dc:creator>Kevin Horton</dc:creator>
		<pubDate>Mon, 03 Apr 2006 12:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python#comment-194</guid>
		<description>This comment has nothing to do about EXIF parsing, but I couldn't find another obvious way to get in contact with Wolfram.

I wanted to pick up the RSS feed for this blog, but found that the two feeds listed (Entries and Comments), are identical.  They both actually contain only the comments.   This looks like a blunder, and I figured you might want to know about it.</description>
		<content:encoded><![CDATA[<p>This comment has nothing to do about EXIF parsing, but I couldn&#8217;t find another obvious way to get in contact with Wolfram.</p>
<p>I wanted to pick up the RSS feed for this blog, but found that the two feeds listed (Entries and Comments), are identical.  They both actually contain only the comments.   This looks like a blunder, and I figured you might want to know about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jos Yule</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python/comment-page-1#comment-193</link>
		<dc:creator>Jos Yule</dc:creator>
		<pubDate>Fri, 31 Mar 2006 16:25:30 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python#comment-193</guid>
		<description>Nice one - i'll take a look at the Parser class too.</description>
		<content:encoded><![CDATA[<p>Nice one - i&#8217;ll take a look at the Parser class too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python/comment-page-1#comment-192</link>
		<dc:creator>Fredrik</dc:creator>
		<pubDate>Fri, 31 Mar 2006 15:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python#comment-192</guid>
		<description>"Unfortunately the file-like object urllib returns doesn’t have a ’seek’ method which Image.open requires."

To avoid temporary files, you can load the data into a StringIO instance:

    import urllib, cStringIO

    file = cStringIO.StringIO(urllib.urlopen(URL).read())
    img = Image.open(file)

A more advanced approach is to use the ImageFile.Parser class, and "feed" incoming data directly into the parser object (see the documentation for an example).

Hope this helps! /F</description>
		<content:encoded><![CDATA[<p>&#8220;Unfortunately the file-like object urllib returns doesn’t have a ’seek’ method which Image.open requires.&#8221;</p>
<p>To avoid temporary files, you can load the data into a StringIO instance:</p>
<p>    import urllib, cStringIO</p>
<p>    file = cStringIO.StringIO(urllib.urlopen(URL).read())<br />
    img = Image.open(file)</p>
<p>A more advanced approach is to use the ImageFile.Parser class, and &#8220;feed&#8221; incoming data directly into the parser object (see the documentation for an example).</p>
<p>Hope this helps! /F</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wolfram</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python/comment-page-1#comment-191</link>
		<dc:creator>Wolfram</dc:creator>
		<pubDate>Fri, 31 Mar 2006 15:52:36 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python#comment-191</guid>
		<description>Jos, thanks a lot.</description>
		<content:encoded><![CDATA[<p>Jos, thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jos Yule</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python/comment-page-1#comment-190</link>
		<dc:creator>Jos Yule</dc:creator>
		<pubDate>Fri, 31 Mar 2006 15:30:08 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2006/reading-out-exif-data-via-python#comment-190</guid>
		<description>I just tried PIL's Image.open when using a urllib.urlopen()'ed file. Unfortunately the file-like object urllib returns doesn't have a 'seek' method which Image.open requires. 

However, you can use urllib.urlretrieve(), which saves the object the url points to in a local file (see the docs). So you can do something like the following:

## CODE START

import Image
import urllib

dl_img = urllib.urlretrieve("URL-to-image")
img = Image.open(dl_img[0])

## CODE END

dl_img is a tuple, the first part being the path to the locally saved file. Again, see the docs for urllib.</description>
		<content:encoded><![CDATA[<p>I just tried PIL&#8217;s Image.open when using a urllib.urlopen()&#8217;ed file. Unfortunately the file-like object urllib returns doesn&#8217;t have a &#8217;seek&#8217; method which Image.open requires. </p>
<p>However, you can use urllib.urlretrieve(), which saves the object the url points to in a local file (see the docs). So you can do something like the following:</p>
<p>## CODE START</p>
<p>import Image<br />
import urllib</p>
<p>dl_img = urllib.urlretrieve(&#8221;URL-to-image&#8221;)<br />
img = Image.open(dl_img[0])</p>
<p>## CODE END</p>
<p>dl_img is a tuple, the first part being the path to the locally saved file. Again, see the docs for urllib.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

