bharath venkatesh wrote:

> but i  can't apply resize operation on cached_image as it a str object
> but i found out that Image.formstring(mode, size, data, decoder, 
> parameters) Creates an image memory from pixel data in a string so i did 
> the following

raw pixel data and data in image interchange formats are two different 
things.  in your case, you should use StringIO on the way in:

      im = Image.open(StringIO(data))

</F>

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

Reply via email to