<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2942</id>
	<title>Nabble - Python - image-sig</title>
	<updated>2009-12-21T10:22:35Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Python---image-sig-f2942.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Python---image-sig-f2942.html" />
	<subtitle type="html">Image Processing with Python SIG</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26878082</id>
	<title>Re: PIL installation on Snow Leopard</title>
	<published>2009-12-21T10:22:35Z</published>
	<updated>2009-12-21T10:22:35Z</updated>
	<author>
		<name>Christopher Barker</name>
	</author>
	<content type="html">Christopher Brewster wrote:
&lt;br&gt;&amp;gt; On a clean install on Snow Leopard, I have installed:
&lt;br&gt;&lt;br&gt;I don't have snow leopard, so I can't test anything , but a few comments:
&lt;br&gt;&lt;br&gt;&amp;gt; - python 2.6.4 using the Mac installer on python.org
&lt;br&gt;&amp;gt; - In accordance with instructions here: &lt;a href=&quot;http://stackoverflow.com/questions/1438270/installing-python-imaging-library-pil-on-snow-leopard-with-updated-python-2-6-2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://stackoverflow.com/questions/1438270/installing-python-imaging-library-pil-on-snow-leopard-with-updated-python-2-6-2&lt;/a&gt;&lt;br&gt;&amp;gt; I issues the command export CC=/usr/bin/gcc-4.0
&lt;br&gt;&lt;br&gt;note that those instructions were written for 2.6.2 -- I think 2.6.4 may 
&lt;br&gt;do the right thing without that command. I'd try it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; and now PIL but I get the following errors which I do not know how to interpret:
&lt;br&gt;&amp;gt; ----
&lt;br&gt;&amp;gt; Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.4u.sdk
&lt;br&gt;&lt;br&gt;well, do you have:
&lt;br&gt;&lt;br&gt;/Developer/SDKs/MacOSX10.4u.sdk
&lt;br&gt;&lt;br&gt;I suspect not. I think it's an optional install with XCode (you did 
&lt;br&gt;install XCode, didn't you?)
&lt;br&gt;&lt;br&gt;I think this is your show-stopper -- try going back to however you 
&lt;br&gt;installed XCode,a nd look for a box to check to install the 10.4u SDK.
&lt;br&gt;&lt;br&gt;If this doesn't work, I'd try the pythonmac list.
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;&lt;br&gt;-Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Barker, Ph.D.
&lt;br&gt;Oceanographer
&lt;br&gt;&lt;br&gt;Emergency Response Division
&lt;br&gt;NOAA/NOS/OR&amp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(206) 526-6959 &amp;nbsp; voice
&lt;br&gt;7600 Sand Point Way NE &amp;nbsp; (206) 526-6329 &amp;nbsp; fax
&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp; &amp;nbsp; &amp;nbsp; (206) 526-6317 &amp;nbsp; main reception
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26878082&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26878082&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PIL-installation-on-Snow-Leopard-tp26864826p26878082.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26876292</id>
	<title>Re: Fwd:  Inverse of QUAD transform?</title>
	<published>2009-12-21T07:05:49Z</published>
	<updated>2009-12-21T07:05:49Z</updated>
	<author>
		<name>Boris Borcic-2</name>
	</author>
	<content type="html">Well, obviously it should be possible to pick some minimal target rectangle 
&lt;br&gt;containing the target quad, and then the problem reduces to that of finding a 
&lt;br&gt;source quad around the source rectangle in such a way that mapping it to the 
&lt;br&gt;target rectangle will also map the source rectangle to the target quad :)
&lt;br&gt;&lt;br&gt;Laura &amp; Edward Cannon wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; ---------- Forwarded message ----------
&lt;br&gt;&amp;gt; From: Laura&amp; &amp;nbsp;Edward Cannon&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26876292&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cannon.el@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [...] There is not an anti-quad however.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Fri, Nov 27, 2009 at 9:50 AM, Mark Wendell&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26876292&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mark.wendell@...&lt;/a&gt;&amp;gt; &amp;nbsp;wrote:
&lt;br&gt;&amp;gt;&amp;gt; The docs say that the QUAD image transform takes a quadrilateral
&lt;br&gt;&amp;gt;&amp;gt; defined by an 8-tuple, and transforms it to a rectangle of the
&lt;br&gt;&amp;gt;&amp;gt; provided 'size'.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I need the inverse of that: I need to take a rectangular region, and
&lt;br&gt;&amp;gt;&amp;gt; warp it to an arbitrary quad. Is there a way to do that?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; thanks
&lt;br&gt;&amp;gt;&amp;gt; Mark
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Mark Wendell
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26876292&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26876292&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26876292&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Inverse-of-QUAD-transform--tp26545891p26876292.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26864826</id>
	<title>PIL installation on Snow Leopard</title>
	<published>2009-12-20T08:17:08Z</published>
	<updated>2009-12-20T08:17:08Z</updated>
	<author>
		<name>Christopher Brewster-2</name>
	</author>
	<content type="html">(my apologies in advance)
&lt;br&gt;&lt;br&gt;On a clean install on Snow Leopard, I have installed:
&lt;br&gt;- python 2.6.4 using the Mac installer on python.org
&lt;br&gt;- In accordance with instructions here: &lt;a href=&quot;http://stackoverflow.com/questions/1438270/installing-python-imaging-library-pil-on-snow-leopard-with-updated-python-2-6-2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://stackoverflow.com/questions/1438270/installing-python-imaging-library-pil-on-snow-leopard-with-updated-python-2-6-2&lt;/a&gt;&lt;br&gt;I issues the command export CC=/usr/bin/gcc-4.0
&lt;br&gt;&lt;br&gt;- libjpeg as per &lt;a href=&quot;http://proteus-tech.com/blog/cwt/install-pil-in-snow-leopard/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://proteus-tech.com/blog/cwt/install-pil-in-snow-leopard/&lt;/a&gt;&lt;br&gt;- Freetype2 as per their website &lt;a href=&quot;http://www.freetype.org/index2.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freetype.org/index2.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;and now PIL but I get the following errors which I do not know how to interpret:
&lt;br&gt;----
&lt;br&gt;Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.4u.sdk
&lt;br&gt;Please check your Xcode installation
&lt;br&gt;gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.6/_imagingtk.o build/temp.macosx-10.3-fat-2.6/Tk/tkImaging.o -L/usr/local/lib -L/Library/Frameworks/Python.framework/Versions/2.6/lib -L/usr/lib -o build/lib.macosx-10.3-fat-2.6/_imagingtk.so -framework Tcl -framework Tk
&lt;br&gt;ld: framework not found Tcl
&lt;br&gt;collect2: ld returned 1 exit status
&lt;br&gt;ld: framework not found Tcl
&lt;br&gt;collect2: ld returned 1 exit status
&lt;br&gt;lipo: can't open input file: /var/folders/Md/Md7dPPzaGPGQNU+9szQi3++++TI/-Tmp-//cc9P9TtC.out (No such file or directory)
&lt;br&gt;error: command 'gcc-4.0' failed with exit status 1
&lt;br&gt;----
&lt;br&gt;&lt;br&gt;Any advice would be appreciated.
&lt;br&gt;&lt;br&gt;Christopher
&lt;br&gt;&lt;br&gt;&lt;br&gt;*****************************************************
&lt;br&gt;Operations and Information Management Group,
&lt;br&gt;Aston Business School, Aston University,
&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26864826&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PIL-installation-on-Snow-Leopard-tp26864826p26864826.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26753771</id>
	<title>Re: Is PIL 1.1.7 final &quot;official&quot;</title>
	<published>2009-12-11T16:46:40Z</published>
	<updated>2009-12-11T16:46:40Z</updated>
	<author>
		<name>Fredrik Lundh</name>
	</author>
	<content type="html">Yeah, 1.1.7 is official; it's just me having accidentally skipped a
&lt;br&gt;couple of steps in the release procedure. &amp;nbsp;Will fix asap. &amp;nbsp;Sorry for
&lt;br&gt;the confusion.
&lt;br&gt;&lt;br&gt;&amp;lt;/F&amp;gt;
&lt;br&gt;&lt;br&gt;On Wed, Dec 9, 2009 at 5:43 AM, Steven Watanabe
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26753771&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Steven.Watanabe@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I see that PIL 1.1.7 final has been released:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://offline.effbot.org/ann-pil-117-november-15-2009&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://offline.effbot.org/ann-pil-117-november-15-2009&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, PyPI and the PIL websites still point to 1.1.6:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://effbot.org/zone/pil-index.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://effbot.org/zone/pil-index.htm&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.pythonware.com/products/pil/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.pythonware.com/products/pil/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My question: is this release &amp;quot;official&amp;quot;?
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Image-SIG maillist  -  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26753771&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26753771&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-PIL-1.1.7-final-%22official%22-tp26753729p26753771.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26735976</id>
	<title>Re: bug in PIL 1.1.7 Image.split()</title>
	<published>2009-12-10T14:55:32Z</published>
	<updated>2009-12-10T14:55:32Z</updated>
	<author>
		<name>Fredrik Lundh</name>
	</author>
	<content type="html">Good catch. The breakage is caused by a 1.1.7 fix that treats
&lt;br&gt;single-band images as a special case; unfortunately, the fix checks
&lt;br&gt;that attribute before actually loading the image... &amp;nbsp;I'll provide a
&lt;br&gt;patch later, but you can of course work around it by adding an
&lt;br&gt;explicit load to your code.
&lt;br&gt;&lt;br&gt;Thanks /F
&lt;br&gt;&lt;br&gt;On Thu, Dec 10, 2009 at 10:48 AM, Bill Janssen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26735976&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;janssen@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Just stumbled over this bug.  Shouldn't split() do a load() first?  This
&lt;br&gt;&amp;gt; used to work in 1.1.6.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Bill
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; % python
&lt;br&gt;&amp;gt; Python 2.5.1 (r251:54863, Feb  6 2009, 19:02:12)
&lt;br&gt;&amp;gt; [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
&lt;br&gt;&amp;gt; Type &amp;quot;help&amp;quot;, &amp;quot;copyright&amp;quot;, &amp;quot;credits&amp;quot; or &amp;quot;license&amp;quot; for more information.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; import Image
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Image.VERSION
&lt;br&gt;&amp;gt; '1.1.7'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; im = Image.open(&amp;quot;/u/extensions/vCardParser/vcardimage.png&amp;quot;)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; im.mode
&lt;br&gt;&amp;gt; 'RGBA'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; im.size
&lt;br&gt;&amp;gt; (200, 138)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; im.split()
&lt;br&gt;&amp;gt; Traceback (most recent call last):
&lt;br&gt;&amp;gt;  File &amp;quot;&amp;lt;stdin&amp;gt;&amp;quot;, line 1, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;gt;  File &amp;quot;/Library/Python/2.5/site-packages/PIL/Image.py&amp;quot;, line 1497, in split
&lt;br&gt;&amp;gt;    if self.im.bands == 1:
&lt;br&gt;&amp;gt; AttributeError: 'NoneType' object has no attribute 'bands'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Image-SIG maillist  -  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26735976&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26735976&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/quick-pixelwise-euclidean-difference-tp26673163p26735976.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26732523</id>
	<title>bug in PIL 1.1.7 Image.split()</title>
	<published>2009-12-10T10:48:08Z</published>
	<updated>2009-12-10T10:48:08Z</updated>
	<author>
		<name>jalopyuser</name>
	</author>
	<content type="html">Just stumbled over this bug. &amp;nbsp;Shouldn't split() do a load() first? &amp;nbsp;This
&lt;br&gt;used to work in 1.1.6.
&lt;br&gt;&lt;br&gt;Bill
&lt;br&gt;&lt;br&gt;% python
&lt;br&gt;Python 2.5.1 (r251:54863, Feb &amp;nbsp;6 2009, 19:02:12) 
&lt;br&gt;[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
&lt;br&gt;Type &amp;quot;help&amp;quot;, &amp;quot;copyright&amp;quot;, &amp;quot;credits&amp;quot; or &amp;quot;license&amp;quot; for more information.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; import Image
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Image.VERSION
&lt;br&gt;'1.1.7'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; im = Image.open(&amp;quot;/u/extensions/vCardParser/vcardimage.png&amp;quot;)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; im.mode
&lt;br&gt;'RGBA'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; im.size
&lt;br&gt;(200, 138)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; im.split()
&lt;br&gt;Traceback (most recent call last):
&lt;br&gt;&amp;nbsp; File &amp;quot;&amp;lt;stdin&amp;gt;&amp;quot;, line 1, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;nbsp; File &amp;quot;/Library/Python/2.5/site-packages/PIL/Image.py&amp;quot;, line 1497, in split
&lt;br&gt;&amp;nbsp; &amp;nbsp; if self.im.bands == 1:
&lt;br&gt;AttributeError: 'NoneType' object has no attribute 'bands'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26732523&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/quick-pixelwise-euclidean-difference-tp26673163p26732523.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26753721</id>
	<title>Image.split broken when image file isn't loaded</title>
	<published>2009-12-09T06:51:22Z</published>
	<updated>2009-12-09T06:51:22Z</updated>
	<author>
		<name>Chris Lamb-8</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Image.split appears to be broken when the image file isn't loaded first.
&lt;br&gt;&lt;br&gt;My testcase is:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;gt;&amp;gt;&amp;gt; from PIL import Image
&lt;br&gt;&amp;nbsp; &amp;gt;&amp;gt;&amp;gt; x = Image.open('test.png')
&lt;br&gt;&amp;nbsp; &amp;gt;&amp;gt;&amp;gt; x.split()
&lt;br&gt;&amp;nbsp; [..]
&lt;br&gt;&amp;nbsp; AttributeError: 'NoneType' object has no attribute 'bands'
&lt;br&gt;&lt;br&gt;I think Image.point was broken in the same way recently; the client
&lt;br&gt;workaround of calling Image.load works here too.
&lt;br&gt;&lt;br&gt;Patch attached.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ,''`.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;: :' &amp;nbsp;: &amp;nbsp; &amp;nbsp; Chris Lamb
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;`. `'` &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26753721&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lamby@...&lt;/a&gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;`-
&lt;br&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;diff -urNad python-imaging-1.1.7.orig/PIL/Image.py python-imaging-1.1.7/PIL/Image.py
&lt;br&gt;--- python-imaging-1.1.7.orig/PIL/Image.py	2009-12-09 14:37:37.000000000 +0000
&lt;br&gt;+++ python-imaging-1.1.7/PIL/Image.py	2009-12-09 14:38:13.000000000 +0000
&lt;br&gt;@@ -1494,11 +1494,12 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;def split(self):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;Split image into bands&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.load()
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if self.im.bands == 1:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ims = [self.copy()]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ims = []
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.load()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for i in range(self.im.bands):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ims.append(self._new(self.im.getband(i)))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return tuple(ims)
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26753721&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26753721/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Image.split-broken-when-image-file-isn%27t-loaded-tp26753721p26753721.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26753729</id>
	<title>Is PIL 1.1.7 final &quot;official&quot;</title>
	<published>2009-12-09T05:43:30Z</published>
	<updated>2009-12-09T05:43:30Z</updated>
	<author>
		<name>Steven Watanabe-2</name>
	</author>
	<content type="html">I see that PIL 1.1.7 final has been released:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://offline.effbot.org/ann-pil-117-november-15-2009&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://offline.effbot.org/ann-pil-117-november-15-2009&lt;/a&gt;&lt;br&gt;&lt;br&gt;However, PyPI and the PIL websites still point to 1.1.6:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://effbot.org/zone/pil-index.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://effbot.org/zone/pil-index.htm&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.pythonware.com/products/pil/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.pythonware.com/products/pil/&lt;/a&gt;&lt;br&gt;&lt;br&gt;My question: is this release &amp;quot;official&amp;quot;?
&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26753729&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-PIL-1.1.7-final-%22official%22-tp26753729p26753729.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26682036</id>
	<title>Re: quick pixelwise euclidean difference</title>
	<published>2009-12-07T10:45:30Z</published>
	<updated>2009-12-07T10:45:30Z</updated>
	<author>
		<name>Christopher Barker</name>
	</author>
	<content type="html">Lauri Love (nsh) wrote:
&lt;br&gt;&amp;gt; Let me know if there is any faster solution short of coding in some 
&lt;br&gt;&amp;gt; distance functions to the C modules
&lt;br&gt;&lt;br&gt;You might do better with numpy and/or scipy.ndimage.
&lt;br&gt;&lt;br&gt;You can convert a PIL RGB image to a numpy array very easily. I think 
&lt;br&gt;it's as simple as:
&lt;br&gt;&lt;br&gt;import numpy as np
&lt;br&gt;&lt;br&gt;arr = np.asarray(pil_image)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Then you have a WxHx3 array of uint8 values you can do all sorts of math on.
&lt;br&gt;&lt;br&gt;-Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Barker, Ph.D.
&lt;br&gt;Oceanographer
&lt;br&gt;&lt;br&gt;Emergency Response Division
&lt;br&gt;NOAA/NOS/OR&amp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(206) 526-6959 &amp;nbsp; voice
&lt;br&gt;7600 Sand Point Way NE &amp;nbsp; (206) 526-6329 &amp;nbsp; fax
&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp; &amp;nbsp; &amp;nbsp; (206) 526-6317 &amp;nbsp; main reception
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26682036&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26682036&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/quick-pixelwise-euclidean-difference-tp26673163p26682036.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673164</id>
	<title>Re: quick pixelwise euclidean difference</title>
	<published>2009-12-05T15:47:16Z</published>
	<updated>2009-12-05T15:47:16Z</updated>
	<author>
		<name>Lauri Love (nsh)</name>
	</author>
	<content type="html">Ok, I found a reasonable solution using the ImageStat module to get the sum of pixels of the difference image. This gives the manhattan distance when divided by the pixel count and averaged over RGB.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
In [151]: def idiff(im1,im2):&lt;/div&gt;&lt;div&gt;    return array(ImageStat.Stat(ImageChops.difference(im1,im2)).sum).mean()/(im1.size[0] * im1.size[1])&lt;/div&gt;&lt;div&gt;   .....: &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;In [153]: timeit(&amp;quot;idiff(anna,f37)&amp;quot;,20)&lt;/div&gt;
&lt;div&gt;Out[153]: 0.023978149890899657&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Let me know if there is any faster solution short of coding in some distance functions to the C modules (which I did consider, before be reminded of my pitiful ignorance...)&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Yours, &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-nsh&lt;/div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Dec 5, 2009 at 7:56 PM, Lauri Love (nsh) &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673164&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lauri.love@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;i&amp;#39;m coding a project which requires quick comparison of two images per pixel by colorspace (distance is the sum of the squares of the differences of RGB values over the pixels of the images), as a fitness function (i am trying to recreate/extend roger alsing&amp;#39;s genetic mona lisa code in python).&lt;div&gt;

&lt;br&gt;&lt;/div&gt;&lt;div&gt;creating an absolute difference image takes about 1/100th of a second on my (eeepc) hardware, but i can&amp;#39;t figure out a way to reduce the difference image to an integer of float value quickly. it takes about the order of 5 seconds to iterate through all the pixels and sum the RGB values to get the manhattan distance. &amp;quot;manually&amp;quot; calculating the manhattan or euclidean distances between the two images is even slower. &lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;can anyone suggest a way to quickly get either distance from two images?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;sincerely and gratefully, &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;div&gt;-nsh&lt;/div&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673164&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/quick-pixelwise-euclidean-difference-tp26673163p26673164.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673163</id>
	<title>quick pixelwise euclidean difference</title>
	<published>2009-12-05T11:56:57Z</published>
	<updated>2009-12-05T11:56:57Z</updated>
	<author>
		<name>Lauri Love (nsh)</name>
	</author>
	<content type="html">i&amp;#39;m coding a project which requires quick comparison of two images per pixel by colorspace (distance is the sum of the squares of the differences of RGB values over the pixels of the images), as a fitness function (i am trying to recreate/extend roger alsing&amp;#39;s genetic mona lisa code in python).&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;creating an absolute difference image takes about 1/100th of a second on my (eeepc) hardware, but i can&amp;#39;t figure out a way to reduce the difference image to an integer of float value quickly. it takes about the order of 5 seconds to iterate through all the pixels and sum the RGB values to get the manhattan distance. &amp;quot;manually&amp;quot; calculating the manhattan or euclidean distances between the two images is even slower. &lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;can anyone suggest a way to quickly get either distance from two images?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;sincerely and gratefully, &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-nsh&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673163&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/quick-pixelwise-euclidean-difference-tp26673163p26673163.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673161</id>
	<title>Can't install on Snow Leopard</title>
	<published>2009-12-02T19:27:36Z</published>
	<updated>2009-12-02T19:27:36Z</updated>
	<author>
		<name>Xiao Yu</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I have installed Python from Python.org and have set my environment variables as to use it in default instead of the system Python. I am unable to install PIL however. Trying to build from the downloaded package or using easy_install produces the following error:
&lt;br&gt;&lt;br&gt;lipo: can't open input file: /var/tmp//ccmUAK0V.out (No such file or directory)
&lt;br&gt;error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
&lt;br&gt;&lt;br&gt;Any ideas?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Xiao
&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673161&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can%27t-install-on-Snow-Leopard-tp26673161p26673161.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673157</id>
	<title>Re: XPM</title>
	<published>2009-12-01T17:25:20Z</published>
	<updated>2009-12-01T17:25:20Z</updated>
	<author>
		<name>Tom Heathcote-2</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Hi Ivan,&lt;br&gt;
&lt;br&gt;
As far as I can see, there has been no new version of PIL since I
submitted this patch to the list.&amp;nbsp;&amp;nbsp; &lt;br&gt;
&lt;br&gt;
Be aware that even with the patch, the handling of XPM files is not
100% complete.&amp;nbsp; In particular, PIL does not handle XPM files which use
more than one character per pixel (those with more than about 90 or 100
colours in the palette).&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Tom.&lt;br&gt;
&lt;br&gt;
&lt;hr size=&quot;2&quot; width=&quot;100%&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Ivan Van Laningham wrote:
&lt;blockquote cite=&quot;mid:ba5cdc4b0911200934o169270ag2b6d8f71c1520583@mail.gmail.com&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;Hi All--
I ran across Tom Heathcotes patches for PIL 1.1.6 to handle XPM files
correctly.  Is there a version of PIL available that includes the
fixes?  I've got several hundred XPMs I'd like to convert to PNGs.

Thanks!

Metta,
Ivan
  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673157&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XPM-tp26447379p26673157.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26588738</id>
	<title>Re: What's wrong with this TIF ... IOError(&quot;cannot identify image file&quot;)</title>
	<published>2009-12-01T01:13:44Z</published>
	<updated>2009-12-01T01:13:44Z</updated>
	<author>
		<name>image-sig</name>
	</author>
	<content type="html">Hi Florian - Thank you *very* much. That did the trick, your help is
&lt;br&gt;much appreciated - this one really had me scratching my head !
&lt;br&gt;&lt;br&gt;thanks again.
&lt;br&gt;&lt;br&gt;Richard.
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Mon, 30 Nov 2009 14:14:19 +0100, &amp;quot;Florian Höch&amp;quot;
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26588738&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lists+Image_SIG@...&lt;/a&gt;&amp;gt; said:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi, it has nothing to do with missing TIFF headers.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; TIFFDUMP OUTPUT FOR THE SECOND FILE 
&lt;br&gt;&amp;gt; &amp;gt; ===================================
&lt;br&gt;&amp;gt; &amp;gt; BitsPerSample (258) SHORT (3) 4&amp;lt;16 16 16 16&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; PIL can't process 16-bit/channel images. You can use -depth 8
&lt;br&gt;&amp;gt; option in your ImageMagick commandline to force 8-bit/channel output
&lt;br&gt;&amp;gt; (as the original image is also 8-bit, I assume you use the Q16 version
&lt;br&gt;&amp;gt; of ImageMagick which always converts to 16-bit for supported fileformats
&lt;br&gt;&amp;gt; on output if you don't tell it otherwise).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Florian Höch
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26588738&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26588738&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/What%27s-wrong-with-this-TIF-...-IOError%28%22cannot-identify-image-file%22%29-tp26571530p26588738.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26581021</id>
	<title>Re: Example Code for Displaying Pictures--I'm Stumped</title>
	<published>2009-11-30T10:51:14Z</published>
	<updated>2009-11-30T10:51:14Z</updated>
	<author>
		<name>Wayne Watson</name>
	</author>
	<content type="html">I now have a detailed description of the file, but the smallest file I 
&lt;br&gt;can find is 1.7M. I don't think I can go lower. It probably contains 90 
&lt;br&gt;128x128 frames plus the 640x480. I suppose if there's some tool in Win, 
&lt;br&gt;I could just cut it at some place to shorten it. Tomorrow I'm going out 
&lt;br&gt;of town, but should be on the web mail. I'll have my laptop, and many of 
&lt;br&gt;these files are on it, so I might be able to do some work on this.
&lt;br&gt;&lt;br&gt;Wayne Watson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks. I'll try to follow up on this soon.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Bill Janssen wrote:
&lt;br&gt;&amp;gt;&amp;gt; Another good option is pyglet. &amp;nbsp;I use it for converting video to streams
&lt;br&gt;&amp;gt;&amp;gt; of PIL images.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Here's the code for turning a pyglet image into a PIL image:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; def pyglet_to_pil_image (pyglet_image):
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; image = pyglet_image.get_image_data()
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format = image.format
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if format != 'RGB':
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Only save in RGB or RGBA formats.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format = 'RGBA'
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pitch = -(image.width * len(format))
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Note: Don't try and use frombuffer(..); different versions of
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # PIL will orient the image differently.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pil_image = Image.fromstring(
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format, (image.width, image.height), 
&lt;br&gt;&amp;gt;&amp;gt; image.get_data(format, pitch))
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # need to flip the image to accommodate Pyglet's transform space
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pil_image = pil_image.transpose(Image.FLIP_TOP_BOTTOM)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return pil_image
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This code is part of extensions/video.py, part of the UpLib source code
&lt;br&gt;&amp;gt;&amp;gt; at &lt;a href=&quot;http://uplib.parc.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uplib.parc.com/&lt;/a&gt;.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Bill
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Obz Site: &amp;nbsp;39° 15' 7&amp;quot; N, 121° 2' 32&amp;quot; W, 2700 feet &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The popular press and many authorities believe the number
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; of pedifiles that prowl the web is 50,00. There are no
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; figures that support this. The number of children below
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 18 years of age kidnapped by strangers is 1 in 600,00,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; or 115 per year. -- The Science of Fear by D. Gardner
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Web Page: &amp;lt;www.speckledwithstars.net/&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26581021&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Example-Code-for-Displaying-Pictures--I%27m-Stumped-tp26506454p26581021.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26576512</id>
	<title>Re: What's wrong with this TIF ... IOError(&quot;cannot identify image file&quot;)</title>
	<published>2009-11-30T05:14:19Z</published>
	<updated>2009-11-30T05:14:19Z</updated>
	<author>
		<name>Florian Höch</name>
	</author>
	<content type="html">Hi, it has nothing to do with missing TIFF headers.
&lt;br&gt;&lt;br&gt;&amp;gt; TIFFDUMP OUTPUT FOR THE SECOND FILE 
&lt;br&gt;&amp;gt; ===================================
&lt;br&gt;&amp;gt; BitsPerSample (258) SHORT (3) 4&amp;lt;16 16 16 16&amp;gt;
&lt;br&gt;&lt;br&gt;PIL can't process 16-bit/channel images. You can use -depth 8
&lt;br&gt;option in your ImageMagick commandline to force 8-bit/channel output
&lt;br&gt;(as the original image is also 8-bit, I assume you use the Q16 version
&lt;br&gt;of ImageMagick which always converts to 16-bit for supported fileformats
&lt;br&gt;on output if you don't tell it otherwise).
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Florian Höch
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26576512&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/What%27s-wrong-with-this-TIF-...-IOError%28%22cannot-identify-image-file%22%29-tp26571530p26576512.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26571530</id>
	<title>What's wrong with this TIF ... IOError(&quot;cannot identify image file&quot;)</title>
	<published>2009-11-30T01:17:50Z</published>
	<updated>2009-11-30T01:17:50Z</updated>
	<author>
		<name>image-sig</name>
	</author>
	<content type="html">Hi - I have a TIF which when I am try to read it with PIL I get
&lt;br&gt;'IOError(&amp;quot;cannot identify image file&amp;quot;)'.
&lt;br&gt;&lt;br&gt;In it's original form PIL can read it. I then use ImageMagick to change
&lt;br&gt;it's colour managment from RGB to CMYK (script A at bottom of email
&lt;br&gt;shows the windows BAT files used). At that stage PIL won't read the
&lt;br&gt;output. The output of TIFFDUMP applied to that image
&lt;br&gt;(ZENDGraphOutput-Step1.TIF) is shown below.
&lt;br&gt;&lt;br&gt;However I read in an earlier post
&lt;br&gt;(&lt;a href=&quot;http://mail.python.org/pipermail/image-sig/2008-November/005263.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/pipermail/image-sig/2008-November/005263.html&lt;/a&gt;)
&lt;br&gt;that some TIF headers are needed by PIL which are sometimes lost by
&lt;br&gt;intermediate process so I used ImageMagick and TIFFSET to put them back
&lt;br&gt;in place (script B at bottom of email). Unfortunately even after that
&lt;br&gt;PIL won't read it. The output of TIFFDUMP applied to that image
&lt;br&gt;(ZENDGraphOutput-Step2.TIF) is also shown below.
&lt;br&gt;&lt;br&gt;Is there anyone out there who can see why PIL is choking on this TIF ? I
&lt;br&gt;would be grateful for any advice.
&lt;br&gt;&lt;br&gt;TIFFDUMP OUTPUT FOR THE FIRST FILE 
&lt;br&gt;==================================
&lt;br&gt;C:\20091130&amp;gt;C:\bin\installed\GnuWin32\bin\tiffdump.exe
&lt;br&gt;&amp;quot;C:\20091130\OutputImages\ZENDGraphOutput-Step1.TIF&amp;quot;
&lt;br&gt;C:\20091130\OutputImages\ZENDGraphOutput-Step1.TIF:
&lt;br&gt;Magic: 0x4949 &amp;lt;little-endian&amp;gt; Version: 0x2a
&lt;br&gt;Directory 0: offset 374842 (0x5b83a) next 0 (0)
&lt;br&gt;ImageWidth (256) SHORT (3) 1&amp;lt;1600&amp;gt;
&lt;br&gt;ImageLength (257) SHORT (3) 1&amp;lt;981&amp;gt;
&lt;br&gt;BitsPerSample (258) SHORT (3) 5&amp;lt;8 8 8 8 8&amp;gt;
&lt;br&gt;Compression (259) SHORT (3) 1&amp;lt;5&amp;gt;
&lt;br&gt;Photometric (262) SHORT (3) 1&amp;lt;5&amp;gt;
&lt;br&gt;FillOrder (266) SHORT (3) 1&amp;lt;1&amp;gt;
&lt;br&gt;DocumentName (269) ASCII (2) 84&amp;lt;C:\usr\obfuscated ...&amp;gt;
&lt;br&gt;StripOffsets (273) LONG (4) 981&amp;lt;8 327 646 965 1284 1603 1922 2241 2560
&lt;br&gt;2879 3198 3517 3836 4155 4474 4793 5112 5431 5750 6069 6388 6707 7026
&lt;br&gt;7345 ...&amp;gt;
&lt;br&gt;Orientation (274) SHORT (3) 1&amp;lt;1&amp;gt;
&lt;br&gt;SamplesPerPixel (277) SHORT (3) 1&amp;lt;5&amp;gt;
&lt;br&gt;RowsPerStrip (278) SHORT (3) 1&amp;lt;1&amp;gt;
&lt;br&gt;StripByteCounts (279) LONG (4) 981&amp;lt;319 319 319 319 319 319 319 319 319
&lt;br&gt;319 319 319 319 319 319 319 319 319 319 319 319 319 319 319 ...&amp;gt;
&lt;br&gt;XResolution (282) RATIONAL (5) 1&amp;lt;96&amp;gt;
&lt;br&gt;YResolution (283) RATIONAL (5) 1&amp;lt;96&amp;gt;
&lt;br&gt;PlanarConfig (284) SHORT (3) 1&amp;lt;1&amp;gt;
&lt;br&gt;ResolutionUnit (296) SHORT (3) 1&amp;lt;2&amp;gt;
&lt;br&gt;Software (305) ASCII (2) 58&amp;lt;ImageMagick 6.3.4 05/11/ ...&amp;gt;
&lt;br&gt;InkSet (332) SHORT (3) 1&amp;lt;1&amp;gt;
&lt;br&gt;ExtraSamples (338) SHORT (3) 1&amp;lt;2&amp;gt;
&lt;br&gt;&lt;br&gt;TIFFDUMP OUTPUT FOR THE SECOND FILE 
&lt;br&gt;===================================
&lt;br&gt;C:\20091130&amp;gt;C:\bin\installed\GnuWin32\bin\tiffdump.exe
&lt;br&gt;&amp;quot;C:\20091130\OutputImages\ZENDGraphOutput-Step2.TIF&amp;quot;
&lt;br&gt;C:\20091130\OutputImages\ZENDGraphOutput-Step2.TIF:
&lt;br&gt;Magic: 0x4949 &amp;lt;little-endian&amp;gt; Version: 0x2a
&lt;br&gt;Directory 0: offset 309338 (0x4b85a) next 0 (0)
&lt;br&gt;ImageWidth (256) SHORT (3) 1&amp;lt;1600&amp;gt;
&lt;br&gt;ImageLength (257) SHORT (3) 1&amp;lt;981&amp;gt;
&lt;br&gt;BitsPerSample (258) SHORT (3) 4&amp;lt;16 16 16 16&amp;gt;
&lt;br&gt;Compression (259) SHORT (3) 1&amp;lt;5&amp;gt;
&lt;br&gt;Photometric (262) SHORT (3) 1&amp;lt;5&amp;gt;
&lt;br&gt;FillOrder (266) SHORT (3) 1&amp;lt;1&amp;gt;
&lt;br&gt;DocumentName (269) ASCII (2) 84&amp;lt;C:\usr\obfuscated ...&amp;gt;
&lt;br&gt;StripOffsets (273) LONG (4) 981&amp;lt;8 191 374 557 740 923 1106 1289 1472
&lt;br&gt;1655 1838 2021 2204 2387 2570 2753 2936 3119 3302 3485 3668 3851 4034
&lt;br&gt;4217 ...&amp;gt;
&lt;br&gt;Orientation (274) SHORT (3) 1&amp;lt;1&amp;gt;
&lt;br&gt;SamplesPerPixel (277) SHORT (3) 1&amp;lt;4&amp;gt;
&lt;br&gt;RowsPerStrip (278) SHORT (3) 1&amp;lt;1&amp;gt;
&lt;br&gt;StripByteCounts (279) LONG (4) 981&amp;lt;183 183 183 183 183 183 183 183 183
&lt;br&gt;183 183 183 183 183 183 183 183 183 183 183 183 183 183 183 ...&amp;gt;
&lt;br&gt;XResolution (282) RATIONAL (5) 1&amp;lt;96&amp;gt;
&lt;br&gt;YResolution (283) RATIONAL (5) 1&amp;lt;96&amp;gt;
&lt;br&gt;PlanarConfig (284) SHORT (3) 1&amp;lt;1&amp;gt;
&lt;br&gt;ResolutionUnit (296) SHORT (3) 1&amp;lt;2&amp;gt;
&lt;br&gt;Software (305) ASCII (2) 7&amp;lt;Banana\0&amp;gt;
&lt;br&gt;InkSet (332) SHORT (3) 1&amp;lt;1&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;SCRIPT A
&lt;br&gt;========
&lt;br&gt;@echo off
&lt;br&gt;set ICCCOLPROFDIR=C:\Adobe_ICC_Profiles_bundler
&lt;br&gt;set IMGINPUTDIR=C:\20091130
&lt;br&gt;set IMGOUTPUTDIR=C:\20091130\OutputImages
&lt;br&gt;set CONVERTEXE=C:\ImageMagick\convert.exe
&lt;br&gt;@echo off
&lt;br&gt;REM Convert the TIFF Produced directly from the ZendGraph output
&lt;br&gt;set INPUTFILE=ZENDGraphOutput.TIFF
&lt;br&gt;set OUTPUTFILE=ZENDGraphOutput-Step1.TIF
&lt;br&gt;@echo on 
&lt;br&gt;%CONVERTEXE% %IMGINPUTDIR%\%INPUTFILE% +profile icc -profile
&lt;br&gt;%ICCCOLPROFDIR%\RGBProfiles\AdobeRGB1998.icc -profile
&lt;br&gt;%ICCCOLPROFDIR%\CMYKProfiles\USWebCoatedSWOP.icc -strip 
&lt;br&gt;%IMGOUTPUTDIR%\%OUTPUTFILE%
&lt;br&gt;@echo off
&lt;br&gt;&lt;br&gt;SCRIPT B
&lt;br&gt;========
&lt;br&gt;@echo off
&lt;br&gt;set CONVERTEXE=C:\ImageMagick\convert.exe
&lt;br&gt;set IMGDIR=C:\20091130\OutputImages
&lt;br&gt;set TIFFSETEXE=C:\bin\installed\GnuWin32\bin\tiffset.exe
&lt;br&gt;@echo off
&lt;br&gt;REM Convert the TIFF Produced directly from the ZendGraph output
&lt;br&gt;set INPUTFILE=ZENDGraphOutput-Step1.TIF
&lt;br&gt;set INTERMEDIATEFILE=ZENDGraphOutput-Step2.TIF
&lt;br&gt;@echo on 
&lt;br&gt;%CONVERTEXE% &amp;nbsp;%IMGDIR%\%INPUTFILE% &amp;nbsp;-flatten +matte
&lt;br&gt;%IMGDIR%\%INTERMEDIATEFILE%
&lt;br&gt;@echo off
&lt;br&gt;%TIFFSETEXE% -s 305 Banana %IMGDIR%\%INTERMEDIATEFILE%
&lt;br&gt;%TIFFSETEXE% -s 296 2 &amp;nbsp; %IMGDIR%\%INTERMEDIATEFILE%
&lt;br&gt;%TIFFSETEXE% -s 282 96 &amp;nbsp;%IMGDIR%\%INTERMEDIATEFILE%
&lt;br&gt;%TIFFSETEXE% -s 283 96 &amp;nbsp;%IMGDIR%\%INTERMEDIATEFILE% 
&lt;br&gt;@echo off
&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26571530&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/What%27s-wrong-with-this-TIF-...-IOError%28%22cannot-identify-image-file%22%29-tp26571530p26571530.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26568505</id>
	<title>Re: Problem with optimize flag and GIF encoder</title>
	<published>2009-11-29T17:26:40Z</published>
	<updated>2009-11-29T17:26:40Z</updated>
	<author>
		<name>Ian Ward-2</name>
	</author>
	<content type="html">It is listed under 1.2a3/1.2b1 here:
&lt;br&gt;&lt;a href=&quot;http://effbot.org/zone/pil-changes-113.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://effbot.org/zone/pil-changes-113.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;But you're right, I might suggest they generate png thumbnails instead.
&lt;br&gt;&lt;br&gt;Ian
&lt;br&gt;&lt;br&gt;Fredrik Lundh wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hmm. &amp;nbsp;PIL doesn't officially support &amp;quot;optimize&amp;quot; for GIF files:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://effbot.org/imagingbook/format-gif.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://effbot.org/imagingbook/format-gif.htm&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; so maybe this is some partially implemented feature that's been hiding
&lt;br&gt;&amp;gt; in there for ages. &amp;nbsp;I'm not sure GIF is such a great format for
&lt;br&gt;&amp;gt; thumbnails anyway; maybe the toolkit should be tweaked to render any
&lt;br&gt;&amp;gt; 8-bit thumbnail as PNG instead?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;/F&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Sat, Nov 28, 2009 at 5:44 AM, Ian Ward &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568505&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ian@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I am running python 2.5 and PIL 1.1.6 on Debian Lenny, and I've found
&lt;br&gt;&amp;gt;&amp;gt; that using the optimize flag when creating GIF files can create invalid
&lt;br&gt;&amp;gt;&amp;gt; images. &amp;nbsp;An example:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; im = Image.new('RGB', (20,44))
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; im.save('test.gif', optimize=True)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; im2 = Image.open('test.gif')
&lt;br&gt;&amp;gt;&amp;gt; Traceback (most recent call last):
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;File &amp;quot;&amp;lt;stdin&amp;gt;&amp;quot;, line 1, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;File &amp;quot;/usr/lib/python2.5/site-packages/PIL/Image.py&amp;quot;, line 1917, in open
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;raise IOError(&amp;quot;cannot identify image file&amp;quot;)
&lt;br&gt;&amp;gt;&amp;gt; IOError: cannot identify image file
&lt;br&gt;&amp;gt;&amp;gt; I came across this problem using django-filebrowser, which has
&lt;br&gt;&amp;gt;&amp;gt; optimize=True as a default for creating thumbnails of all image formats..
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Ian
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (sorry if this message gets posted twice, I'm resending 20h after my
&lt;br&gt;&amp;gt;&amp;gt; first attempt)
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568505&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568505&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-optimize-flag-and-GIF-encoder-tp26553248p26568505.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26567356</id>
	<title>Re: Problem with optimize flag and GIF encoder</title>
	<published>2009-11-29T15:06:14Z</published>
	<updated>2009-11-29T15:06:14Z</updated>
	<author>
		<name>Fredrik Lundh</name>
	</author>
	<content type="html">Hmm. &amp;nbsp;PIL doesn't officially support &amp;quot;optimize&amp;quot; for GIF files:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://effbot.org/imagingbook/format-gif.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://effbot.org/imagingbook/format-gif.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;so maybe this is some partially implemented feature that's been hiding
&lt;br&gt;in there for ages. &amp;nbsp;I'm not sure GIF is such a great format for
&lt;br&gt;thumbnails anyway; maybe the toolkit should be tweaked to render any
&lt;br&gt;8-bit thumbnail as PNG instead?
&lt;br&gt;&lt;br&gt;&amp;lt;/F&amp;gt;
&lt;br&gt;&lt;br&gt;On Sat, Nov 28, 2009 at 5:44 AM, Ian Ward &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26567356&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ian@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am running python 2.5 and PIL 1.1.6 on Debian Lenny, and I've found
&lt;br&gt;&amp;gt; that using the optimize flag when creating GIF files can create invalid
&lt;br&gt;&amp;gt; images.  An example:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; im = Image.new('RGB', (20,44))
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; im.save('test.gif', optimize=True)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; im2 = Image.open('test.gif')
&lt;br&gt;&amp;gt; Traceback (most recent call last):
&lt;br&gt;&amp;gt;  File &amp;quot;&amp;lt;stdin&amp;gt;&amp;quot;, line 1, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;gt;  File &amp;quot;/usr/lib/python2.5/site-packages/PIL/Image.py&amp;quot;, line 1917, in open
&lt;br&gt;&amp;gt;    raise IOError(&amp;quot;cannot identify image file&amp;quot;)
&lt;br&gt;&amp;gt; IOError: cannot identify image file
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I came across this problem using django-filebrowser, which has
&lt;br&gt;&amp;gt; optimize=True as a default for creating thumbnails of all image formats.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ian
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (sorry if this message gets posted twice, I'm resending 20h after my
&lt;br&gt;&amp;gt; first attempt)
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Image-SIG maillist  -  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26567356&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26567356&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-optimize-flag-and-GIF-encoder-tp26553248p26567356.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26553248</id>
	<title>Problem with optimize flag and GIF encoder</title>
	<published>2009-11-28T05:44:08Z</published>
	<updated>2009-11-28T05:44:08Z</updated>
	<author>
		<name>Ian Ward-2</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I am running python 2.5 and PIL 1.1.6 on Debian Lenny, and I've found
&lt;br&gt;that using the optimize flag when creating GIF files can create invalid
&lt;br&gt;images. &amp;nbsp;An example:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; im = Image.new('RGB', (20,44))
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; im.save('test.gif', optimize=True)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; im2 = Image.open('test.gif')
&lt;br&gt;Traceback (most recent call last):
&lt;br&gt;&amp;nbsp; File &amp;quot;&amp;lt;stdin&amp;gt;&amp;quot;, line 1, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/site-packages/PIL/Image.py&amp;quot;, line 1917, in open
&lt;br&gt;&amp;nbsp; &amp;nbsp; raise IOError(&amp;quot;cannot identify image file&amp;quot;)
&lt;br&gt;IOError: cannot identify image file
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&lt;br&gt;I came across this problem using django-filebrowser, which has
&lt;br&gt;optimize=True as a default for creating thumbnails of all image formats.
&lt;br&gt;&lt;br&gt;Ian
&lt;br&gt;&lt;br&gt;(sorry if this message gets posted twice, I'm resending 20h after my
&lt;br&gt;first attempt)
&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26553248&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-optimize-flag-and-GIF-encoder-tp26553248p26553248.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673155</id>
	<title>Fwd:  Inverse of QUAD transform?</title>
	<published>2009-11-27T11:48:18Z</published>
	<updated>2009-11-27T11:48:18Z</updated>
	<author>
		<name>Laura &amp; Edward Cannon</name>
	</author>
	<content type="html">---------- Forwarded message ----------
&lt;br&gt;From: Laura &amp; Edward Cannon &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673155&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cannon.el@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: Fri, Nov 27, 2009 at 11:48 AM
&lt;br&gt;Subject: Re: [Image-SIG] Inverse of QUAD transform?
&lt;br&gt;To: Mark Wendell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673155&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mark.wendell@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;there is a (undocumented) perspective method that might do what you
&lt;br&gt;want. as I recall
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/pipermail/image-sig/2005-February/003198.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/pipermail/image-sig/2005-February/003198.html&lt;/a&gt;&lt;br&gt;is the documentation. There is not an anti-quad however.
&lt;br&gt;&lt;br&gt;On Fri, Nov 27, 2009 at 9:50 AM, Mark Wendell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673155&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mark.wendell@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The docs say that the QUAD image transform takes a quadrilateral
&lt;br&gt;&amp;gt; defined by an 8-tuple, and transforms it to a rectangle of the
&lt;br&gt;&amp;gt; provided 'size'.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I need the inverse of that: I need to take a rectangular region, and
&lt;br&gt;&amp;gt; warp it to an arbitrary quad. Is there a way to do that?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks
&lt;br&gt;&amp;gt; Mark
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Mark Wendell
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Image-SIG maillist  -  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673155&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673155&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Inverse-of-QUAD-transform--tp26545891p26673155.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26545891</id>
	<title>Inverse of QUAD transform?</title>
	<published>2009-11-27T09:50:17Z</published>
	<updated>2009-11-27T09:50:17Z</updated>
	<author>
		<name>Mark Wendell</name>
	</author>
	<content type="html">The docs say that the QUAD image transform takes a quadrilateral
&lt;br&gt;defined by an 8-tuple, and transforms it to a rectangle of the
&lt;br&gt;provided 'size'.
&lt;br&gt;&lt;br&gt;I need the inverse of that: I need to take a rectangular region, and
&lt;br&gt;warp it to an arbitrary quad. Is there a way to do that?
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;Mark
&lt;br&gt;-- 
&lt;br&gt;--
&lt;br&gt;Mark Wendell
&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545891&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Inverse-of-QUAD-transform--tp26545891p26545891.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673149</id>
	<title>Problem with optimize flag and GIF encoder</title>
	<published>2009-11-27T08:34:04Z</published>
	<updated>2009-11-27T08:34:04Z</updated>
	<author>
		<name>Ian Ward-2</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I am running python 2.5 and PIL 1.1.6 on Debian Lenny, and I've found
&lt;br&gt;that using the optimize flag when creating GIF files can create invalid
&lt;br&gt;images. &amp;nbsp;An example:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; im = Image.new('RGB', (20,44))
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; im.save('test.gif', optimize=True)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; im2 = Image.open('test.gif')
&lt;br&gt;Traceback (most recent call last):
&lt;br&gt;&amp;nbsp; File &amp;quot;&amp;lt;stdin&amp;gt;&amp;quot;, line 1, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;nbsp; File &amp;quot;/usr/lib/python2.5/site-packages/PIL/Image.py&amp;quot;, line 1917, in open
&lt;br&gt;&amp;nbsp; &amp;nbsp; raise IOError(&amp;quot;cannot identify image file&amp;quot;)
&lt;br&gt;IOError: cannot identify image file
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&lt;br&gt;I came across this problem using django-filebrowser, which has
&lt;br&gt;optimize=True as a default for creating thumbnails of all image formats.
&lt;br&gt;&lt;br&gt;Ian
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673149&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-optimize-flag-and-GIF-encoder-tp26673149p26673149.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673147</id>
	<title>Re: resizing an image with alphachannel: dirty edges</title>
	<published>2009-11-27T06:59:23Z</published>
	<updated>2009-11-27T06:59:23Z</updated>
	<author>
		<name>Ivan Elchin</name>
	</author>
	<content type="html">Thank you!&lt;br&gt;It&amp;#39;s works fine!&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/20 Alexey Borzenkov &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673147&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;snaury@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;div class=&quot;im&quot;&gt;On Thu, Nov 12, 2009 at 3:59 PM, Ivan Elchin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673147&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ivangermes@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; I have a problem, when i resizing an image with alphachannel.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;You can try converting your image to RGBa (premultiplied alpha),&lt;br&gt;
resizing it, then converting back to RGBA. The problem here is that&lt;br&gt;
there are dirty pixels with 0 alpha, and they get interpolated like&lt;br&gt;
everything else. On my PIL this works:&lt;br&gt;
&lt;br&gt;
from PIL import Image&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
im = Image.open(&amp;quot;sega.png&amp;quot;)&lt;br&gt;
&lt;/div&gt;im = im.convert(&amp;quot;RGBa&amp;quot;)&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
cur_width, cur_height = im.size&lt;br&gt;
new_width, new_height = (200, 200)&lt;br&gt;
&lt;br&gt;
if not new_width == 0 and not new_height == 0:&lt;br&gt;
   ratio = min(float(new_width)/cur_width,&lt;br&gt;
               float(new_height)/cur_height)&lt;br&gt;
else:&lt;br&gt;
   if new_width == 0:&lt;br&gt;
       ratio = float(new_height)/cur_height&lt;br&gt;
   else:&lt;br&gt;
       ratio = float(new_width)/cur_width&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
new_dimensions = (int(round(cur_width*ratio)),&lt;br&gt;
                 int(round(cur_height*ratio)))&lt;br&gt;
&lt;br&gt;
new_im = im.resize(new_dimensions, Image.ANTIALIAS)&lt;br&gt;
&lt;/div&gt;new_im = new_im.convert(&amp;quot;RGBA&amp;quot;)&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
new_im.save(&amp;#39;rez.png&amp;#39;)&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Though my PIL has many modifications, I&amp;#39;m not sure if RGBA-&amp;gt;RGBa-&amp;gt;RGBA&lt;br&gt;
is implemented in vanilla 1.1.6. (after checking) Ah, yes, it&amp;#39;s not.&lt;br&gt;
Though you can try recompiling PIL with this patch:&lt;br&gt;
&lt;a href=&quot;http://git.kitsu.ru/patched/pil.git?a=commitdiff;h=b8f1c572430b06b5d4294fb2bf29327275120554&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://git.kitsu.ru/patched/pil.git?a=commitdiff;h=b8f1c572430b06b5d4294fb2bf29327275120554&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673147&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/resizing-an-image-with-alphachannel%3A-dirty-edges-tp26318228p26673147.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26532175</id>
	<title>Re: had to hack setup.py to find tk.h</title>
	<published>2009-11-26T08:50:25Z</published>
	<updated>2009-11-26T08:50:25Z</updated>
	<author>
		<name>Fredrik Lundh</name>
	</author>
	<content type="html">Which versions of PIL and Ubuntu? &amp;nbsp;(I'm pretty sure I built this
&lt;br&gt;successfully on 9.10.)
&lt;br&gt;&lt;br&gt;&amp;lt;/F&amp;gt;
&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 3:57 PM, Michael P. Soulier
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532175&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msoulier@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm on an Ubuntu system and I had to add this to setup.py to get PIL to
&lt;br&gt;&amp;gt; build with the Tk extension.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  add_directory(include_dirs, &amp;quot;/usr/include/tk&amp;quot;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; as tk.h is not in /usr/include
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Mike
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Michael P. Soulier &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532175&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msoulier@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;Any intelligent fool can make things bigger and more complex... It
&lt;br&gt;&amp;gt; takes a touch of genius - and a lot of courage to move in the opposite
&lt;br&gt;&amp;gt; direction.&amp;quot; --Albert Einstein
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Image-SIG maillist  -  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532175&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532175&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/had-to-hack-setup.py-to-find-tk.h-tp26531605p26532175.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531605</id>
	<title>had to hack setup.py to find tk.h</title>
	<published>2009-11-26T06:57:35Z</published>
	<updated>2009-11-26T06:57:35Z</updated>
	<author>
		<name>Michael P. Soulier-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm on an Ubuntu system and I had to add this to setup.py to get PIL to
&lt;br&gt;build with the Tk extension.
&lt;br&gt;&lt;br&gt;&amp;nbsp;add_directory(include_dirs, &amp;quot;/usr/include/tk&amp;quot;)
&lt;br&gt;&lt;br&gt;as tk.h is not in /usr/include
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Mike
&lt;br&gt;-- 
&lt;br&gt;Michael P. Soulier &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531605&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msoulier@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;quot;Any intelligent fool can make things bigger and more complex... It
&lt;br&gt;takes a touch of genius - and a lot of courage to move in the opposite
&lt;br&gt;direction.&amp;quot; --Albert Einstein
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531605&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (195 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26531605/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/had-to-hack-setup.py-to-find-tk.h-tp26531605p26531605.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530427</id>
	<title>Re: Example Code for Displaying Pictures--I'm Stumped</title>
	<published>2009-11-26T06:45:30Z</published>
	<updated>2009-11-26T06:45:30Z</updated>
	<author>
		<name>Wayne Watson</name>
	</author>
	<content type="html">Thanks. I'll try to follow up on this soon.
&lt;br&gt;&lt;br&gt;Bill Janssen wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Another good option is pyglet. &amp;nbsp;I use it for converting video to streams
&lt;br&gt;&amp;gt; of PIL images.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here's the code for turning a pyglet image into a PIL image:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; def pyglet_to_pil_image (pyglet_image):
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; image = pyglet_image.get_image_data()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format = image.format
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if format != 'RGB':
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Only save in RGB or RGBA formats.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format = 'RGBA'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pitch = -(image.width * len(format))
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Note: Don't try and use frombuffer(..); different versions of
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # PIL will orient the image differently.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pil_image = Image.fromstring(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format, (image.width, image.height), image.get_data(format, pitch))
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # need to flip the image to accommodate Pyglet's transform space
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pil_image = pil_image.transpose(Image.FLIP_TOP_BOTTOM)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return pil_image
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This code is part of extensions/video.py, part of the UpLib source code
&lt;br&gt;&amp;gt; at &lt;a href=&quot;http://uplib.parc.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uplib.parc.com/&lt;/a&gt;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Bill
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Obz Site: &amp;nbsp;39° 15' 7&amp;quot; N, 121° 2' 32&amp;quot; W, 2700 feet
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;350 350 350 350 350 350 350 350 350 350
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Make the number famous. See 350.org
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The major event has passed, but keep the number alive.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Web Page: &amp;lt;www.speckledwithstars.net/&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530427&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Example-Code-for-Displaying-Pictures--I%27m-Stumped-tp26506454p26530427.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530408</id>
	<title>Re: Example Code for Displaying Pictures--I'm Stumped</title>
	<published>2009-11-26T06:44:52Z</published>
	<updated>2009-11-26T06:44:52Z</updated>
	<author>
		<name>Wayne Watson</name>
	</author>
	<content type="html">Thanks. Unfortunately, the fellow that can answer my question left early
&lt;br&gt;yesterday, so I won't know exactly the file's structure until Monday.
&lt;br&gt;&lt;br&gt;Christopher Barker wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Wayne Watson wrote:
&lt;br&gt;&amp;gt;&amp;gt; I didn't know I could post, attach I guess, here. I'll do that later.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;as long as it's a small file -- it can be much easier to help
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There is one puzzling format difficulty I have with the file that 
&lt;br&gt;&amp;gt;&amp;gt; requires some attention. I hope to have that cleared up in the next 
&lt;br&gt;&amp;gt;&amp;gt; hour or two. Actually, there's a twist in the format that should be 
&lt;br&gt;&amp;gt;&amp;gt; mentioned. The first image (frame) is 640x480, and I'm pretty sure 
&lt;br&gt;&amp;gt;&amp;gt; one byte per pixel. However, every other image (frame) after that is 
&lt;br&gt;&amp;gt;&amp;gt; 128 pixels square. An auxiliary text file provides where, x and y 
&lt;br&gt;&amp;gt;&amp;gt; pixel position, the small image should be pasted to form a complete 
&lt;br&gt;&amp;gt;&amp;gt; image with the 640x480 frame.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Maybe it's because I&amp;quot;m more familiar with numpy than PIL, but this is 
&lt;br&gt;&amp;gt; how I'd do that (untested, of course...):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; import numpy as np
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; infile = file('filename')
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; img = np.fromfile(infile, count=640*480, dtype=np.uint8)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; for i in range(num_images):
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; do_something
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; small_image = np.fromfile(infile, count=128*128, dtype=np.uint8)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; img[x:x+128, y:y+128] = small_image
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; NOTE: np.histogram2d might do what you want for the histogram
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm sure you can do somethign similar directly with PIL.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Chris
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Obz Site: &amp;nbsp;39° 15' 7&amp;quot; N, 121° 2' 32&amp;quot; W, 2700 feet
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;350 350 350 350 350 350 350 350 350 350
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Make the number famous. See 350.org
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The major event has passed, but keep the number alive.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Web Page: &amp;lt;www.speckledwithstars.net/&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530408&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Example-Code-for-Displaying-Pictures--I%27m-Stumped-tp26506454p26530408.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526038</id>
	<title>Re: Example Code for Displaying Pictures--I'm Stumped</title>
	<published>2009-11-26T00:37:04Z</published>
	<updated>2009-11-26T00:37:04Z</updated>
	<author>
		<name>Fredrik Lundh</name>
	</author>
	<content type="html">On Thu, Nov 26, 2009 at 3:05 AM, Bill Janssen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526038&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;janssen@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;        # Note: Don't try and use frombuffer(..); different versions of
&lt;br&gt;&amp;gt;        # PIL will orient the image differently.
&lt;br&gt;&amp;gt;        pil_image = Image.fromstring(
&lt;br&gt;&amp;gt;            format, (image.width, image.height), image.get_data(format, pitch))
&lt;br&gt;&lt;br&gt;frombuffer interprets the default decoder settings differently from
&lt;br&gt;fromstring; this is being fixed long-term, but as mentioned in the
&lt;br&gt;documentation, you can do it portably by spelling out the decoder
&lt;br&gt;arguments:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; im = Image.frombuffer(mode, size, data, &amp;quot;raw&amp;quot;, mode, 0, 1)
&lt;br&gt;&lt;br&gt;(1.1.7 will also warn you if you call it without the last four arguments).
&lt;br&gt;&lt;br&gt;&amp;lt;/F&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526038&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Example-Code-for-Displaying-Pictures--I%27m-Stumped-tp26506454p26526038.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26523404</id>
	<title>Re: Example Code for Displaying Pictures--I'm Stumped</title>
	<published>2009-11-25T18:05:24Z</published>
	<updated>2009-11-25T18:05:24Z</updated>
	<author>
		<name>jalopyuser</name>
	</author>
	<content type="html">Another good option is pyglet. &amp;nbsp;I use it for converting video to streams
&lt;br&gt;of PIL images.
&lt;br&gt;&lt;br&gt;Here's the code for turning a pyglet image into a PIL image:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; def pyglet_to_pil_image (pyglet_image):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; image = pyglet_image.get_image_data()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format = image.format
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if format != 'RGB':
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Only save in RGB or RGBA formats.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format = 'RGBA'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pitch = -(image.width * len(format))
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Note: Don't try and use frombuffer(..); different versions of
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # PIL will orient the image differently.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pil_image = Image.fromstring(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format, (image.width, image.height), image.get_data(format, pitch))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # need to flip the image to accommodate Pyglet's transform space
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pil_image = pil_image.transpose(Image.FLIP_TOP_BOTTOM)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return pil_image
&lt;br&gt;&lt;br&gt;This code is part of extensions/video.py, part of the UpLib source code
&lt;br&gt;at &lt;a href=&quot;http://uplib.parc.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uplib.parc.com/&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;Bill
&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523404&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Example-Code-for-Displaying-Pictures--I%27m-Stumped-tp26506454p26523404.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26520993</id>
	<title>Re: Example Code for Displaying Pictures--I'm Stumped</title>
	<published>2009-11-25T13:57:04Z</published>
	<updated>2009-11-25T13:57:04Z</updated>
	<author>
		<name>Christopher Barker</name>
	</author>
	<content type="html">Wayne Watson wrote:
&lt;br&gt;&amp;gt; I didn't know I could post, attach I guess, here. I'll do that later.
&lt;br&gt;&lt;br&gt;&amp;nbsp; as long as it's a small file -- it can be much easier to help
&lt;br&gt;&lt;br&gt;&amp;gt; There is one puzzling format difficulty I have with the file that 
&lt;br&gt;&amp;gt; requires some attention. I hope to have that cleared up in the next hour 
&lt;br&gt;&amp;gt; or two. Actually, there's a twist in the format that should be 
&lt;br&gt;&amp;gt; mentioned. The first image (frame) is 640x480, and I'm pretty sure one 
&lt;br&gt;&amp;gt; byte per pixel. However, every other image (frame) after that is 128 
&lt;br&gt;&amp;gt; pixels square. An auxiliary text file provides where, x and y pixel 
&lt;br&gt;&amp;gt; position, the small image should be pasted to form a complete image with 
&lt;br&gt;&amp;gt; the 640x480 frame.
&lt;br&gt;&lt;br&gt;Maybe it's because I&amp;quot;m more familiar with numpy than PIL, but this is 
&lt;br&gt;how I'd do that (untested, of course...):
&lt;br&gt;&lt;br&gt;import numpy as np
&lt;br&gt;&lt;br&gt;infile = file('filename')
&lt;br&gt;&lt;br&gt;img = np.fromfile(infile, count=640*480, dtype=np.uint8)
&lt;br&gt;&lt;br&gt;&lt;br&gt;for i in range(num_images):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;do_something
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;small_image = np.fromfile(infile, count=128*128, dtype=np.uint8)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;img[x:x+128, y:y+128] = small_image
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;....
&lt;br&gt;&lt;br&gt;NOTE: np.histogram2d might do what you want for the histogram
&lt;br&gt;&lt;br&gt;&lt;br&gt;I'm sure you can do somethign similar directly with PIL.
&lt;br&gt;&lt;br&gt;-Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Barker, Ph.D.
&lt;br&gt;Oceanographer
&lt;br&gt;&lt;br&gt;Emergency Response Division
&lt;br&gt;NOAA/NOS/OR&amp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(206) 526-6959 &amp;nbsp; voice
&lt;br&gt;7600 Sand Point Way NE &amp;nbsp; (206) 526-6329 &amp;nbsp; fax
&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp; &amp;nbsp; &amp;nbsp; (206) 526-6317 &amp;nbsp; main reception
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520993&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26520993&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Example-Code-for-Displaying-Pictures--I%27m-Stumped-tp26506454p26520993.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519215</id>
	<title>Re: Example Code for Displaying Pictures--I'm Stumped</title>
	<published>2009-11-25T11:52:51Z</published>
	<updated>2009-11-25T11:52:51Z</updated>
	<author>
		<name>Wayne Watson</name>
	</author>
	<content type="html">I didn't know I could post, attach I guess, here. I'll do that later.
&lt;br&gt;&lt;br&gt;There is one puzzling format difficulty I have with the file that 
&lt;br&gt;requires some attention. I hope to have that cleared up in the next hour 
&lt;br&gt;or two. Actually, there's a twist in the format that should be 
&lt;br&gt;mentioned. The first image (frame) is 640x480, and I'm pretty sure one 
&lt;br&gt;byte per pixel. However, every other image (frame) after that is 128 
&lt;br&gt;pixels square. An auxiliary text file provides where, x and y pixel 
&lt;br&gt;position, the small image should be pasted to form a complete image with 
&lt;br&gt;the 640x480 frame. However, if one can get as far as simply displaying 
&lt;br&gt;the first frame and then the following smaller frames, I think that 
&lt;br&gt;would be quite sufficient for starters.
&lt;br&gt;&lt;br&gt;Yes, I've made some &amp;quot;touchdowns&amp;quot; before on the link you provided earlier 
&lt;br&gt;this year. I do need to fiddle with PIL again to get some semblance of 
&lt;br&gt;an idea how to use. 
&lt;br&gt;&lt;br&gt;Christopher Barker wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Wayne Watson wrote:
&lt;br&gt;&amp;gt;&amp;gt; David, I have many video files, but only want to process them one at 
&lt;br&gt;&amp;gt;&amp;gt; a time. The format is unique, but simple. Basically, 640x480 b/w bmp 
&lt;br&gt;&amp;gt;&amp;gt; images one right after the other.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In here:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.pythonware.com/library/pil/handbook/introduction.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.pythonware.com/library/pil/handbook/introduction.htm&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Under &amp;quot;image sequences&amp;quot; there is enough info to tell you want to do if 
&lt;br&gt;&amp;gt; PIL understands your format.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What happens when you point PIL at the file? Does it find the first 
&lt;br&gt;&amp;gt; image? does it find more than one? If not, then you may need to break 
&lt;br&gt;&amp;gt; them apart yourself before feeding them to PIL.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Also if it's as simple as a binary dump of a standard data type, then 
&lt;br&gt;&amp;gt; you could probably use numpy's &amp;quot;fromfile&amp;quot; to read the data in, you 
&lt;br&gt;&amp;gt; could then covert to a PIL image for the histogram, or just use 
&lt;br&gt;&amp;gt; numpy's histogram functions to compute it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You may want to post a (small) sample file here, and others can take a 
&lt;br&gt;&amp;gt; look if you're still confused.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Chris
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Obz Site: &amp;nbsp;39° 15' 7&amp;quot; N, 121° 2' 32&amp;quot; W, 2700 feet &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;350 350 350 350 350 350 350 350 350 350
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Make the number famous. See 350.org
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The major event has passed, but keep the number alive.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Web Page: &amp;lt;www.speckledwithstars.net/&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519215&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Example-Code-for-Displaying-Pictures--I%27m-Stumped-tp26506454p26519215.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26516679</id>
	<title>Re: Example Code for Displaying Pictures--I'm Stumped</title>
	<published>2009-11-25T09:19:12Z</published>
	<updated>2009-11-25T09:19:12Z</updated>
	<author>
		<name>Christopher Barker</name>
	</author>
	<content type="html">Wayne Watson wrote:
&lt;br&gt;&amp;gt; David, I have many video files, but only want to process them one at a 
&lt;br&gt;&amp;gt; time. The format is unique, but simple. Basically, 640x480 b/w bmp 
&lt;br&gt;&amp;gt; images one right after the other.
&lt;br&gt;&lt;br&gt;In here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.pythonware.com/library/pil/handbook/introduction.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.pythonware.com/library/pil/handbook/introduction.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;Under &amp;quot;image sequences&amp;quot; there is enough info to tell you want to do if 
&lt;br&gt;PIL understands your format.
&lt;br&gt;&lt;br&gt;&lt;br&gt;What happens when you point PIL at the file? Does it find the first 
&lt;br&gt;image? does it find more than one? If not, then you may need to break 
&lt;br&gt;them apart yourself before feeding them to PIL.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Also if it's as simple as a binary dump of a standard data type, then 
&lt;br&gt;you could probably use numpy's &amp;quot;fromfile&amp;quot; to read the data in, you could 
&lt;br&gt;then covert to a PIL image for the histogram, or just use numpy's 
&lt;br&gt;histogram functions to compute it.
&lt;br&gt;&lt;br&gt;You may want to post a (small) sample file here, and others can take a 
&lt;br&gt;look if you're still confused.
&lt;br&gt;&lt;br&gt;-Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Barker, Ph.D.
&lt;br&gt;Oceanographer
&lt;br&gt;&lt;br&gt;Emergency Response Division
&lt;br&gt;NOAA/NOS/OR&amp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(206) 526-6959 &amp;nbsp; voice
&lt;br&gt;7600 Sand Point Way NE &amp;nbsp; (206) 526-6329 &amp;nbsp; fax
&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp; &amp;nbsp; &amp;nbsp; (206) 526-6317 &amp;nbsp; main reception
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26516679&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26516679&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Example-Code-for-Displaying-Pictures--I%27m-Stumped-tp26506454p26516679.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26515698</id>
	<title>Re: Example Code for Displaying Pictures--I'm Stumped</title>
	<published>2009-11-25T08:21:50Z</published>
	<updated>2009-11-25T08:21:50Z</updated>
	<author>
		<name>Wayne Watson</name>
	</author>
	<content type="html">David, I have many video files, but only want to process them one at a 
&lt;br&gt;time. The format is unique, but simple. Basically, 640x480 b/w bmp 
&lt;br&gt;images one right after the other. The program should read one image, 
&lt;br&gt;then allow the user to produce a histogram of the image displayed. Now 
&lt;br&gt;he moves to the next one of interest, and does the same. I started down 
&lt;br&gt;this path some months ago, but got side tracked. I did make some 
&lt;br&gt;progress, so I think I'll review that, and just see if I can finish it 
&lt;br&gt;off. I would think it really isn't a complicated program. In fact, I 
&lt;br&gt;would think such a common need, without the histograms, that it should 
&lt;br&gt;be available as a possible example of how to read simple video files. 
&lt;br&gt;I'll stick to Win Python. I've used C and Linux before, but don't see a 
&lt;br&gt;need to go back to it here.
&lt;br&gt;&lt;br&gt;David Kirtley wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Well, I really had intended it to be a guide and unless you have the
&lt;br&gt;&amp;gt; gnuplot python stuff also, it would not run directly.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What exactly are you trying to do? From what I understood, you have a
&lt;br&gt;&amp;gt; bunch of image files and want to do histograms for each of them.
&lt;br&gt;&amp;gt; (Unless you are trying to do them from video which is problematic. I
&lt;br&gt;&amp;gt; personally saved the video I was working as a set of individual image
&lt;br&gt;&amp;gt; files. Getting them from a video stream is a lot harder and has many
&lt;br&gt;&amp;gt; difficulties- many man-made because of licensing and patents on video
&lt;br&gt;&amp;gt; compression. I have not done it directly and would not want to mess
&lt;br&gt;&amp;gt; with it. It is really nasty.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Also, that code is pretty old (I think 2.2 or maybe even older Python)
&lt;br&gt;&amp;gt; the new glob stuff
&lt;br&gt;&amp;gt; files = glob.glob(os.path.join('','*.out'))
&lt;br&gt;&amp;gt; will make it easy to get a list of the files in the directory.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So the basic strategy would be :
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Get the list of files to process with the glob -- Who chooses these names? ;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (Not perfect code, just rough idea.....)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; for file in file_list:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;image = Image.open(file)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;histogram = Image.chops.histogram -- don't remember where the
&lt;br&gt;&amp;gt; histogram stuff is off the top of my head
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;make the comparison
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;save the results
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you are going to be doing some in depth analysis of the data, you
&lt;br&gt;&amp;gt; prob will want to use Numpy and deal with them as arrays.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Nov 25, 2009 at 9:44 AM, Wayne Watson
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515698&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sierra_mtnview@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; I thought I'd try executing your code under Win Python, but it objected to
&lt;br&gt;&amp;gt;&amp;gt; indentation, tabs. I tried substituting 4 blanks for them, but that didn't
&lt;br&gt;&amp;gt;&amp;gt; work out. Suggestions?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; David Kirtley wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.cs.panam.edu/~dkirtley/video/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.panam.edu/~dkirtley/video/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Should not need too much modification for what you want to do.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; David Kirtley
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Tue, Nov 24, 2009 at 7:59 PM, Wayne Watson
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515698&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sierra_mtnview@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; A few hours ago someone posted some sample Python code somewhere in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; several
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; of the python lists pictures. I looked at it and thought that looks
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; pretty
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; interesting. Now I can't find it. Does anyone know of that post? Typical
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; use Image-SIG, Pmw-Toolkit Python Tutor, Tkinter, VisPython lists but I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; don't see it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; My interest is that I would like to step through a video file of b/w
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; images,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 640x480, and stop along the way to make histograms to determine noise
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; characteristics of the camera that took the video.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Obz Site: &amp;nbsp;39° 15' 7&amp;quot; N, 121° 2' 32&amp;quot; W, 2700 feet
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 350 350 350 350 350 350 350 350 350 350
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Make the number famous. See 350.org
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The major event has passed, but keep the number alive.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Web Page: &amp;lt;www.speckledwithstars.net/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515698&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Obz Site: &amp;nbsp;39° 15' 7&amp;quot; N, 121° 2' 32&amp;quot; W, 2700 feet
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;350 350 350 350 350 350 350 350 350 350
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Make the number famous. See 350.org
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The major event has passed, but keep the number alive.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Web Page: &amp;lt;www.speckledwithstars.net/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515698&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Obz Site: &amp;nbsp;39° 15' 7&amp;quot; N, 121° 2' 32&amp;quot; W, 2700 feet &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;350 350 350 350 350 350 350 350 350 350
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Make the number famous. See 350.org
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The major event has passed, but keep the number alive.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Web Page: &amp;lt;www.speckledwithstars.net/&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515698&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Example-Code-for-Displaying-Pictures--I%27m-Stumped-tp26506454p26515698.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26515031</id>
	<title>Re: Example Code for Displaying Pictures--I'm Stumped</title>
	<published>2009-11-25T07:44:48Z</published>
	<updated>2009-11-25T07:44:48Z</updated>
	<author>
		<name>Wayne Watson</name>
	</author>
	<content type="html">I thought I'd try executing your code under Win Python, but it objected 
&lt;br&gt;to indentation, tabs. I tried substituting 4 blanks for them, but that 
&lt;br&gt;didn't work out. Suggestions?
&lt;br&gt;&lt;br&gt;David Kirtley wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.cs.panam.edu/~dkirtley/video/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.panam.edu/~dkirtley/video/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Should not need too much modification for what you want to do.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; David Kirtley
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Nov 24, 2009 at 7:59 PM, Wayne Watson
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515031&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sierra_mtnview@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; A few hours ago someone posted some sample Python code somewhere in several
&lt;br&gt;&amp;gt;&amp;gt; of the python lists pictures. I looked at it and thought that looks pretty
&lt;br&gt;&amp;gt;&amp;gt; interesting. Now I can't find it. Does anyone know of that post? Typical I
&lt;br&gt;&amp;gt;&amp;gt; use Image-SIG, Pmw-Toolkit Python Tutor, Tkinter, VisPython lists but I
&lt;br&gt;&amp;gt;&amp;gt; don't see it.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; My interest is that I would like to step through a video file of b/w images,
&lt;br&gt;&amp;gt;&amp;gt; 640x480, and stop along the way to make histograms to determine noise
&lt;br&gt;&amp;gt;&amp;gt; characteristics of the camera that took the video.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Obz Site: &amp;nbsp;39° 15' 7&amp;quot; N, 121° 2' 32&amp;quot; W, 2700 feet
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;350 350 350 350 350 350 350 350 350 350
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Make the number famous. See 350.org
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The major event has passed, but keep the number alive.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Web Page: &amp;lt;www.speckledwithstars.net/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515031&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Obz Site: &amp;nbsp;39° 15' 7&amp;quot; N, 121° 2' 32&amp;quot; W, 2700 feet &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;350 350 350 350 350 350 350 350 350 350
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Make the number famous. See 350.org
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The major event has passed, but keep the number alive.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Web Page: &amp;lt;www.speckledwithstars.net/&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Image-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515031&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Image-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/image-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/image-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Example-Code-for-Displaying-Pictures--I%27m-Stumped-tp26506454p26515031.html" />
</entry>

</feed>
