I'm using web.py to send an image to the client. This works
(shortened):
print open(path, "rb").read( )
but this doesn't:
img = Image.open(path )
img.thumbnail(( 10,10))
print img.getdata()
or
print img.load()
How do I get the bytes of the Image object? 'getdata()' seemed the
way, but unfortunately.. .
(shortened):
print open(path, "rb").read( )
but this doesn't:
img = Image.open(path )
img.thumbnail(( 10,10))
print img.getdata()
or
print img.load()
How do I get the bytes of the Image object? 'getdata()' seemed the
way, but unfortunately.. .
Comment