Re: Simple Question, avoid Image.save
"Elias Fotinis" <[email protected]> Fri, 06 Jan 2012 08:48:00 +0200
| Newsgroups | gmane.comp.python.image |
|---|---|
| Message-ID | <op.v7ng6apeeyris3@efcore> |
On Thu, 29 Dec 2011 14:31:05 +0200, <[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. Use im.tostring() to get the data as a string, or im.getdata() to get a sequence of (R,G,B) tuples. _______________________________________________ Image-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/image-sig