<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: [pil-handbook翻译]使用指南-2</title>
	<atom:link href="http://www.laihj.net/2008/12/pil-handbook%e7%bf%bb%e8%af%91%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.laihj.net/2008/12/pil-handbook%e7%bf%bb%e8%af%91%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97-2/</link>
	<description>list(linux,emacs,旅行,读书,andriod,MacOS,iOS)</description>
	<lastBuildDate>Thu, 05 Jan 2012 18:45:20 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: shirz</title>
		<link>http://www.laihj.net/2008/12/pil-handbook%e7%bf%bb%e8%af%91%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97-2/comment-page-1/#comment-1221</link>
		<dc:creator>shirz</dc:creator>
		<pubDate>Fri, 02 Sep 2011 03:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.laihj.net/articles/pil-handbook%e7%bf%bb%e8%af%91%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97-2.html#comment-1221</guid>
		<description>PIL RGB图像合并不工作。需要加一个语句：
im.load()

Example: 分割和合并颜色通道

r, g, b = im.split()

im.load()

im = Image.merge(”RGB”, (b, g, r))</description>
		<content:encoded><![CDATA[<p>PIL RGB图像合并不工作。需要加一个语句：<br />
im.load()</p>
<p>Example: 分割和合并颜色通道</p>
<p>r, g, b = im.split()</p>
<p>im.load()</p>
<p>im = Image.merge(”RGB”, (b, g, r))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shirz</title>
		<link>http://www.laihj.net/2008/12/pil-handbook%e7%bf%bb%e8%af%91%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97-2/comment-page-1/#comment-1220</link>
		<dc:creator>shirz</dc:creator>
		<pubDate>Fri, 02 Sep 2011 02:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.laihj.net/articles/pil-handbook%e7%bf%bb%e8%af%91%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97-2.html#comment-1220</guid>
		<description>在windows Vsista系统下PIL  im.show()命令不工作，这个网址有一个解决办法，我试了一下，的确管用。
编辑你的pil下的ImageShow.py文件（比如C:\Python26\lib\site-packages\PIL\ImageShow.py），将第99行return语句用
return &quot;start /wait %s &amp;&amp; PING 127.0.0.1 -n 5 &gt; NUL &amp;&amp; del /f %s&quot; % (file, file) 

替换即可。
--------------------
网址  http://www.velocityreviews.com/forums/t707158-python-pil-and-vista-windows-7-show-not-working.html
相关解释：
What actually happens is that the Windows code relies on the fact that the default image viewer on Windows XP was able to work at blocking mode - this means that the command will wait until the image window will be closed. Because of that behaviour, they constructed a command line which deletes a file right after the image has been shown.

Windows Vista doesn&#039;t work the same way, it immediately returns once the command has been executed, so what happens now is that the temporary file gets immediately deleted by the command line, and the image viewer doesn&#039;t have enough time to load the image before it is being deleted.

Here is a quick workaround:

Edit C:\Python26\lib\site-packages\PIL\ImageShow.py, and around line 99, replace with the following line:

return &quot;start /wait %s &amp;&amp; PING 127.0.0.1 -n 5 &gt; NUL &amp;&amp; del /f %s&quot; % (file, file)</description>
		<content:encoded><![CDATA[<p>在windows Vsista系统下PIL  im.show()命令不工作，这个网址有一个解决办法，我试了一下，的确管用。<br />
编辑你的pil下的ImageShow.py文件（比如C:\Python26\lib\site-packages\PIL\ImageShow.py），将第99行return语句用<br />
return &#8220;start /wait %s &amp;&amp; PING 127.0.0.1 -n 5 &gt; NUL &amp;&amp; del /f %s&#8221; % (file, file) </p>
<p>替换即可。<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
网址  <a href="http://www.velocityreviews.com/forums/t707158-python-pil-and-vista-windows-7-show-not-working.html" rel="nofollow">http://www.velocityreviews.com/forums/t707158-python-pil-and-vista-windows-7-show-not-working.html</a><br />
相关解释：<br />
What actually happens is that the Windows code relies on the fact that the default image viewer on Windows XP was able to work at blocking mode &#8211; this means that the command will wait until the image window will be closed. Because of that behaviour, they constructed a command line which deletes a file right after the image has been shown.</p>
<p>Windows Vista doesn&#8217;t work the same way, it immediately returns once the command has been executed, so what happens now is that the temporary file gets immediately deleted by the command line, and the image viewer doesn&#8217;t have enough time to load the image before it is being deleted.</p>
<p>Here is a quick workaround:</p>
<p>Edit C:\Python26\lib\site-packages\PIL\ImageShow.py, and around line 99, replace with the following line:</p>
<p>return &#8220;start /wait %s &amp;&amp; PING 127.0.0.1 -n 5 &gt; NUL &amp;&amp; del /f %s&#8221; % (file, file)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: [pil-handbook翻译]指用指南-3 &#124; 右舷</title>
		<link>http://www.laihj.net/2008/12/pil-handbook%e7%bf%bb%e8%af%91%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97-2/comment-page-1/#comment-18</link>
		<dc:creator>[pil-handbook翻译]指用指南-3 &#124; 右舷</dc:creator>
		<pubDate>Sat, 27 Dec 2008 03:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.laihj.net/articles/pil-handbook%e7%bf%bb%e8%af%91%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97-2.html#comment-18</guid>
		<description>[...] 上一页 PIL目录 下一页 [...]</description>
		<content:encoded><![CDATA[<p>[...] 上一页 PIL目录 下一页 [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

