[Image-SIG] Simple Question, avoid Image.save

Dan Halbert halbert at halwitz.org
Thu Jan 5 19:18:51 CET 2012

On Thursday, December 29, 2011 7:31am, auto11436877 at hushmail.com said:

Hi, I wanted to get the actual bmp data without writting the content to disk.


im = Image.new("RGB", (16, 16) )
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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20120105/ae16db3f/attachment.html>

More information about the Image-SIG mailing list