From: Alec B. <wry...@gm...> - 2007-02-16 04:51:34
|
I'm trying to avoid saving a jpeg to a temp file before loading it into a Pythoncard gui component. Something like: import Image filename = "whatever.jpg" im = Image.open(filename) im2 = im.resize( [512, 384] ) self.viewerWindow.components.pic1.file = im2 The above errors out of course, because the component is expecting a filename. I'm wondering if anyone knows how to do this without having to save im2 to a temp file? I gather StringIO can do this, but I can't figure out how. Thanks for any help. |