Re: Simple Question, avoid Image.save
Edward Cannon <[email protected]> Thu, 5 Jan 2012 11:21:35 -0800
| Newsgroups | gmane.comp.python.image |
|---|---|
| Message-ID | <CAA=wcUYSSzz8ZmWCDEfr1snX7_DFOQfzvYTOTOYyouiKBk_Mjw@mail.gmail.com> |
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, <[email protected]> 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 - [email protected] > http://mail.python.org/mailman/listinfo/image-sig > _______________________________________________ Image-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/image-sig