The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
I have a url from which I can get an image. I want to use PIL to
manipulate that image. Getting the image is easy:
>>> import requestsThere's a bunch of factory functions for Image, but none of them seem
>>> r = requests.get(url)
to take anything that requests is willing to give you. Image.new()
requires that you pass it the image size. Image.open() takes a file
>>> Image.open(r.raw)doesn't work because r.raw gives you a socket which doesn't support
seek(). I end up doing:
>>> r = requests.get(url)which works, but it's gross. Is there something I'm missing here?
>>> data = cStringIO.StringIO(r.content)
>>> image = Image.open(data)
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.