I would like to find the dimensions of an image on the internet. I tried using
from PIL import Image import urllib2 as urllib fd = urllib.urlopen(\"http://a/
Using Python requests:
requests
from PIL import Image from StringIO import StringIO import requests r = requests.get("http://a/b/c") im = Image.open(StringIO(r.content)) im.size