File size: 205 Bytes
1bc7525
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
from PIL import Image
import requests
from io import BytesIO

def get_image_dimensions(image_url):
    response = requests.get(image_url)
    img = Image.open(BytesIO(response.content))
    return img.size