<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.6036" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV>Hi Alan - </DIV>
<DIV>&nbsp;</DIV>
<DIV>I tried using ImageTk from the PIL library to display jpegs (and hopefully 
any picture type) &nbsp;instead of just gif as you suggested below.&nbsp; I read 
online that these&nbsp;these types of programs&nbsp;should 
<DIV>be run from executables not in the interpreter but it crashes and I can't 
read the error.&nbsp; Here is the program:</DIV>
<DIV>&nbsp;</DIV>
<DIV>import Image<BR>import ImageTk</DIV>
<DIV>&nbsp;</DIV>
<DIV>fhdl = 
Image.open("C:\Users\StarShip\PyProgs\SuitGirl.jpg")<BR>ImageTk.PhotoImage(fhdl)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Tested in interpreter and get the following error.&nbsp; I included 
Image.show() to be <BR>sure pic could be displayed and it&nbsp;did come&nbsp;up 
in HP Photo Viewer just like the gif file did</DIV>
<DIV>and I tried the PhotoImage() after I got the cursor back</DIV>
<DIV>&nbsp;</DIV>
<DIV>Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit 
(Intel)] on<BR>win32<BR>Type "help", "copyright", "credits" or "license" for 
more information.<BR>&gt;&gt;&gt; import Image<BR>&gt;&gt;&gt; import 
ImageTk<BR>&gt;&gt;&gt; fhdl = 
Image.open("C:\Users\StarShip\PyProgs\SuitGirl.jpg")<BR>&gt;&gt;&gt; 
fhdl.show()<BR>&gt;&gt;&gt; ImageTk.PhotoImage(fhdl)<BR>Traceback (most recent 
call last):<BR>&nbsp; File "&lt;stdin&gt;", line 1, in &lt;module&gt;<BR>&nbsp; 
File "C:\Python26\lib\site-packages\PIL\ImageTk.py", line 113, in 
__init__<BR>&nbsp;&nbsp;&nbsp; self.__photo = apply(Tkinter.PhotoImage, (), 
kw)<BR>&nbsp; File "C:\Python26\lib\lib-tk\Tkinter.py", line 3285, in 
__init__<BR>&nbsp;&nbsp;&nbsp; Image.__init__(self, 'photo', name, cnf, master, 
**kw)<BR>&nbsp; File "C:\Python26\lib\lib-tk\Tkinter.py", line 3226, in 
__init__<BR>&nbsp;&nbsp;&nbsp; raise RuntimeError, 'Too early to create 
image'<BR>RuntimeError: Too early to create 
image<BR>&gt;&gt;&gt;</DIV><BR>&gt;&gt; <BR>&gt;</DIV>
<DIV>"Alan Gauld" &lt;<A 
href="mailto:alan.gauld@btinternet.com">alan.gauld@btinternet.com</A>&gt; wrote 
in message <A 
href="news:ib270l$p30$1@dough.gmane.org">news:ib270l$p30$1@dough.gmane.org</A>...</DIV>&gt; 
<BR>&gt; "Patty" &lt;<A href="mailto:patty@cruzio.com">patty@cruzio.com</A>&gt; 
wrote<BR>&gt; <BR>&gt;&gt; I had a followup question for you all - and would 
like to know the <BR>&gt;&gt; answer to Alan's question about print quality - 
below -<BR>&gt; <BR>&gt; <BR>&gt; A Google search led me to this page which 
seems to offer a solution<BR>&gt; using PIL anmd a module called 
ImageTk:<BR>&gt; <BR>&gt; <A 
href="http://codeidol.com/python/python3/A-Tkinter-Tour,-Part-1/Viewing-and-Processing-Images-with-PIL/">http://codeidol.com/python/python3/A-Tkinter-Tour,-Part-1/Viewing-and-Processing-Images-with-PIL/</A><BR>&gt; 
<BR>&gt; I've never tried it so I'll be interested to hear if it works for 
<BR>&gt; you...<BR>&gt; <BR>&gt; Alan G., <BR>&gt; 
<BR></FONT></DIV></BODY></HTML>