On Mon, Dec 1, 2008 at 7:08 PM, Scott David Daniels
<[EMAIL PROTECTED]> wrote:

> Almost a FAQ:
>
>    import cStringIO
>    import Image
>
>    im = Image.open("xyzzy.png")
>    ...
>    holder = cStringIO.StringIO()
>    im.save(holder, format="png", transparency=0)
>    bytes_string = holder.getvalue()

I was about to point out that it's actually mentioned in the latest
version of the docs, but then I discovered that it's mentioned under
"tostring" but not under "save".  Looks like I have some editing to
do...

</F>
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to