[Image-SIG] PIL and converting an image to and from a string value

Charles Cazabon charlesc-pyimagesig at pyropus.ca
Fri Apr 27 15:21:44 CEST 2012

Chris Hare <Chare at labr.net> wrote:
> I am stuck however, in figuring out how to take the string data and
> converting it back to an image that I can put into the canvas widget.

See the PIL handbook, where it says "If you have an entire image file in a
string, wrap it in a StringIO object, and use open to load it."

Charles Cazabon                   <charlesc-pyimagesig at pyropus.ca>
Software, consulting, and services available at http://pyropus.ca/

More information about the Image-SIG mailing list