[Tutor] Displaying picture and Text

Alan Gauld alan.gauld at btinternet.com
Thu Nov 4 18:39:32 CET 2010


"Alan Gauld" <alan.gauld at btinternet.com> wrote 

>> fhdl = Image.open("C:\Users\StarShip\PyProgs\\bbsparkle.gif")
>> fhdl.show()

> The Tkinter PhotoImage object can display jpg. I can't recall if
> it does gifs. 

Sorry I got that wrong, it can display gifs but not jpgs (despite 
the fact that jpgs are used more often for photos than gifs!) 
So you will need to convert the jpg to a gif - which might lose 
a lot of quality!

Anyone know of a way to get decent quality in a Tkinter image?
Is there any support in PIL itself?

Alan G.




More information about the Tutor mailing list