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

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to