Miki wrote:
> Hello All,
>
Heelo,
> I get an image from a web page (via urlopen), and like to make it
> twice the size.
<-cut->
> However I don't get a valid GIF image.
>
Your code work well here!
Why you said that the string are invalid?
--code: test_image_double.py
from urllib import ur
Hello All,
I get an image from a web page (via urlopen), and like to make it
twice the size.
I'm trying (using PIL):
code
from ImageFile import Parser
def double(image_data):
image_parser = Parser()
image_parser.feed(image_data)
im = image_parser.close()
new_size = tuple(