Re: Simple Question, avoid Image.save

"Dan Halbert" <[email protected]> Thu, 5 Jan 2012 13:18:51 -0500 (EST)
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
On Thursday, December 29, 2011 7:31am, [email protected] said:


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.

Do you mean you want to get at the pixels? See Image.getdata() and putdata(), Image.getpixel() and putpixel(), and Image.load()  (fastest way), all of which provide pixel-level access in varying ways.

Dan

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig