You can write a custom show method to your plugins:<div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>def show(self):</div>

<div><span class="Apple-tab-span" style="white-space:pre">                </span>path = &quot;/home/adys/.cache/%s.png&quot; % &quot;tmpVfBc3s&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>self.save(path)</div>

<div><span class="Apple-tab-span" style="white-space:pre">                </span>import os</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>os.popen(&quot;eog %s&quot; % path)</div></div><div><br clear="all">J. Leclanche / Adys<br>


<br><br><div class="gmail_quote">On Fri, Jan 8, 2010 at 11:08 PM, Suresh Kumar <span dir="ltr">&lt;<a href="mailto:suresh.amritapuri@gmail.com">suresh.amritapuri@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi<br>
<br>
Thanks. Though not mentioned in the PIL 1.1.6 documentation, I see<br>
from (sys.path)/PIL/Image.py that it can be done. But I have just one<br>
more qn. Is it possible to modify _showxv() without altering the<br>
original code of PIL ?<br>
<font color="#888888"><br>
suresh<br>
</font><div><div></div><div class="h5"><br>
On Fri, Jan 8, 2010 at 1:00 PM, Jerome Leclanche &lt;<a href="mailto:adys.wh@gmail.com">adys.wh@gmail.com</a>&gt; wrote:<br>
&gt; In recent versions of PIL you can do img.show(command=&quot;display %s&quot;) or<br>
&gt; something similar (maybe without %s). Otherwise, edit _showxv in<br>
&gt; (sys.path)/PIL/Image.py<br>
&gt; J. Leclanche / Adys<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Jan 8, 2010 at 10:49 PM, Suresh Kumar &lt;<a href="mailto:suresh.amritapuri@gmail.com">suresh.amritapuri@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; How do you do that? Can you elaborate a bit further?<br>
&gt;&gt;<br>
&gt;&gt; suresh<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Jan 8, 2010 at 12:39 PM, Jerome Leclanche &lt;<a href="mailto:adys.wh@gmail.com">adys.wh@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; I&#39;m pretty sure it&#39;s a bug in Eye of Gnome. Have you tried hardcoding<br>
&gt;&gt; &gt; another program in PIL/Image.py ? (_showxv, iirc)<br>
&gt;&gt; &gt; J. Leclanche / Adys<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Fri, Jan 8, 2010 at 10:18 PM, Suresh Kumar<br>
&gt;&gt; &gt; &lt;<a href="mailto:suresh.amritapuri@gmail.com">suresh.amritapuri@gmail.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hi<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Thanks for the reply.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; With one file, it is working correctly. Now I get the following error<br>
&gt;&gt; &gt;&gt; messages which are different from earlier &quot;file not found ones&quot;.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; (eog:8368): Gtk-CRITICAL **: gtk_tree_model_get_iter: assertion<br>
&gt;&gt; &gt;&gt; `path-&gt;depth &gt; 0&#39; failed<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; (eog:8368): Gtk-CRITICAL **: gtk_list_store_get_value: assertion<br>
&gt;&gt; &gt;&gt; `VALID_ITER (iter, list_store)&#39; failed<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; (eog:8368): GLib-GObject-WARNING **:<br>
&gt;&gt; &gt;&gt; /build/buildd/glib2.0-2.20.1/gobject/gtype.c:3940: type id `0&#39; is<br>
&gt;&gt; &gt;&gt; invalid<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; (eog:8368): GLib-GObject-WARNING **: can&#39;t peek value table for type<br>
&gt;&gt; &gt;&gt; `&lt;invalid&gt;&#39; which is not currently referenced<br>
&gt;&gt; &gt;&gt; Segmentation fault<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; So any suggestions?<br>
&gt;&gt; &gt;&gt; my code:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; -----------------------------------------------------------------------------------------<br>
&gt;&gt; &gt;&gt; #!/usr/bin/python<br>
&gt;&gt; &gt;&gt; print &quot;Aum Amriteshwaryai Namaha&quot;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; import Image<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; imagePath = &quot;/home/suresh/EE241/book_images_3ed/ch03/&quot;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; im34 = Image.open(imagePath + &quot;breast_digital_Xray.tif&quot;)<br>
&gt;&gt; &gt;&gt; im35 = Image.open(imagePath + &quot;DFT_no_log.tif&quot;)<br>
&gt;&gt; &gt;&gt; im35.show()<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; def neg(x):<br>
&gt;&gt; &gt;&gt;    return 255-1-x<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; import math<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; def logtr(x):<br>
&gt;&gt; &gt;&gt;    y = math.log(1+x,10)<br>
&gt;&gt; &gt;&gt;    print y<br>
&gt;&gt; &gt;&gt;    return y*100<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; im34x = im34.point(neg)<br>
&gt;&gt; &gt;&gt; im34x.show()<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; im35x = im35.point(logtr)<br>
&gt;&gt; &gt;&gt; im35x.show()<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; ----------------------------------------------end of<br>
&gt;&gt; &gt;&gt; code--------------------------------<br>
&gt;&gt; &gt;&gt; suresh<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Fri, Jan 8, 2010 at 5:29 AM, Bram Mertens &lt;<a href="mailto:mertensb.mazda@gmail.com">mertensb.mazda@gmail.com</a>&gt;<br>
&gt;&gt; &gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt; On Fri, Jan 8, 2010 at 1:14 AM, suresh.amritapuri<br>
&gt;&gt; &gt;&gt; &gt; &lt;<a href="mailto:suresh.amritapuri@gmail.com">suresh.amritapuri@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt; Hi<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; I am using PIL for image processing in ubuntu 9.04. When i give two<br>
&gt;&gt; &gt;&gt; &gt;&gt; im.show() commands for two different images, the second image is not<br>
&gt;&gt; &gt;&gt; &gt;&gt; displayed (eye of gnome is the display program). It says no such<br>
&gt;&gt; &gt;&gt; &gt;&gt; file<br>
&gt;&gt; &gt;&gt; &gt;&gt; or directory. Any ideas?<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Have you verified that the path to the second image is correct and<br>
&gt;&gt; &gt;&gt; &gt; that the image is readable by your script?<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; e.g. try reversing the order of the images to identify whether or not<br>
&gt;&gt; &gt;&gt; &gt; it is the image that can not be found or eog.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Another approach might be to check the file using the os module or<br>
&gt;&gt; &gt;&gt; &gt; something similar.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Regards<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Bram<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; R Suresh Kumar,<br>
&gt;&gt; &gt;&gt; Phd Student, Vislab<br>
&gt;&gt; &gt;&gt; EE, Univ. of California<br>
&gt;&gt; &gt;&gt; Riverside, CA 92507<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Even after all this time The sun never says to the earth, &quot;You owe Me.&quot;<br>
&gt;&gt; &gt;&gt; Look what happens with A love like that, It lights the Whole Sky.<br>
&gt;&gt; &gt;&gt; - Hafiz e Shirazi<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; Image-SIG maillist  -  <a href="mailto:Image-SIG@python.org">Image-SIG@python.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://mail.python.org/mailman/listinfo/image-sig" target="_blank">http://mail.python.org/mailman/listinfo/image-sig</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; R Suresh Kumar,<br>
&gt;&gt; Phd Student, Vislab<br>
&gt;&gt; EE, Univ. of California<br>
&gt;&gt; Riverside, CA 92507<br>
&gt;&gt; --<br>
&gt;&gt; Even after all this time The sun never says to the earth, &quot;You owe Me.&quot;<br>
&gt;&gt; Look what happens with A love like that, It lights the Whole Sky.<br>
&gt;&gt; - Hafiz e Shirazi<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">R Suresh Kumar,<br>
Phd Student, Vislab<br>
EE, Univ. of California<br>
Riverside, CA 92507<br>
--<br>
Even after all this time The sun never says to the earth, &quot;You owe Me.&quot;<br>
Look what happens with A love like that, It lights the Whole Sky.<br>
- Hafiz e Shirazi<br>
</div></div></blockquote></div><br></div>