Re: [Tkinter-discuss] tkinter.PhotoImage to PIL.Image

2019-12-06 Thread Michael Lange
Hi, On Fri, 6 Dec 2019 08:36:18 + Vasilis Vlachoudis wrote: > Thanks Michael, > > at present my program is based that all the images are loaded as > tkinter.PhotoImage. I am trying always to keep the python dependencies > as low as possible. PIL is not required apart when the user wants some

Re: [Tkinter-discuss] tkinter.PhotoImage to PIL.Image

2019-12-06 Thread Vasilis Vlachoudis
. Vasilis From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of Michael Lange [klappn...@web.de] Sent: Wednesday, December 04, 2019 19:28 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss

Re: [Tkinter-discuss] tkinter.PhotoImage to PIL.Image

2019-12-04 Thread Michael Lange
On Wed, 4 Dec 2019 19:25:45 +0100 Michael Lange wrote: > resized = im.resize((height, width), IMAGE.ANTIALIAS) ^ oops, should be resized = im.resize((width, height), IMAGE.ANTIALIAS) .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.

Re: [Tkinter-discuss] tkinter.PhotoImage to PIL.Image

2019-12-04 Thread Michael Lange
Hi, sorry for the late replay. On Sat, 30 Nov 2019 13:52:11 + Vasilis Vlachoudis wrote: > Hi all, > > I have several images loaded as tkinter.PhotoImage, I want some to > resize them The PhotoImage zoom accepts only integer values and the > result is not that great. While if load them with