Sep-13-2019, 01:38 PM
I imported PIL at the begining of my code: from PIL import Image, ImageTk .
I have longer code (it is only part which I use to save photo) unfortunately I wrote it in different language so I must rewrite it to english before I sent it here.
I have longer code (it is only part which I use to save photo) unfortunately I wrote it in different language so I must rewrite it to english before I sent it here.
image = Image.open(filename) photo = ImageTk.PhotoImage(image) a = image.filename = asksaveasfilename(initialdir = "/",title = "Select file",filetypes = (('JPEG', ('*.jpg','*.jpeg','*.jpe','*.jfif')),('PNG', '*.png'),('BMP', ('*.bmp','*.jdib')),('GIF', '*.gif'))) image.save(a)I save image (class Image not PhotoImage). Should I use PhotoImage for save? Like:
a = photo.filename..., photo.save(a)? But I think PhotoImage has no module to save it. Where else could there be the problem?