image resize doesn't work

Chris Hare chare at labr.net
Sun Aug 1 08:35:00 EDT 2010


I have the following chunk of code.  Although it seems to execute fine, no errors, the image is never resized.  What am I missing?

		imagePNG = Image.open("image.png")
		photo = ImageTk.PhotoImage(imagePNG
		canvasWidth = 300
		canvasHeight = 275
		photo = ImagePNG.resize((canvasWidth,canvasHeight),Image.ANTIALIAS)
		netRadarImage = Label(w, image=photo)


More information about the Python-list mailing list