I am new to python and I am assigned the task of making an image uploade script from a webform in python. We are using Pylons.
I have a form submitting to a page and am trying to run the follow but I am getting this error
AttributeError: read
My code is this:
im = Image.open(request.POST['image'])
im = im.convert("RGB")
im = im.resize((70,70), Image.ANTIALIAS)
im.save("/avatars/q5.png")
Any help is greatly, greatly appreciated!