Out Of Memory exception on System.Drawing.Image.FromFile()
I have an image uploader and cropper which creates thumbnails and I occasionally get an Out Of Memory exception on the following line:
I have an image uploader and cropper which creates thumbnails and I occasionally get an Out Of Memory exception on the following line:
I have a function which first reads an image from disk, resizes it and then saves to another directory.
from Tkinter import * root = Tk() cv = Canvas(root) cv.create_rectangle(10,10,50,50) cv.pack() root.mainloop() I want to convert canvas content to a bitmap or other image, and then do other operations, such as rotating or scaling the image, or changing its coordinates. Bitmaps can improve efficiency to show if I am no longer drawing. What should … Read more