[Tutor] Support

Kent Johnson kent37 at tds.net
Fri Apr 8 17:59:24 CEST 2005


Alberto Troiano wrote:
> I tried the code below but the image gets messed up:
> 
> import Image
> 
> im=Image.open("auto.jpg")
> 
> im.show() ###This is to show the image so you can see it
> 
> m=im.tostring()
> 
> ima=Image.fromstring("RGB",im.size,m)###I tried also with F,RGBA 
> and L mode instead of RGB

maybe ima=Image.fromstring(im.mode,im.size,m) will work...

Kent



More information about the Tutor mailing list