you want to use Image.save with a file object rather than a file. This allows you to keep the data in memory without creating a file. There are several options for file objects, depending on what you might want to do afterwards.
On Thu, Dec 29, 2011 at 4:31 AM, <auto11436...@hushmail.com> wrote: > Hi, I wanted to get the actual bmp data without writting the content to > disk. > > Example: > im = Image.new("RGB", (16, 16) ) > im.save('image.bmp') > > I want to avoid im.save, and just get the actual BMP file data for further > processing. > > Hope you can help me. > > Thanks a lot! > Sean > > _______________________________________________ > Image-SIG maillist - Image-SIG@python.org > http://mail.python.org/mailman/listinfo/image-sig > _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig