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

Edward Cannon edward at unicornschool.org
Thu Jan 5 20:21:35 CET 2012


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,  <auto11436877 at 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 at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>


More information about the Image-SIG mailing list