Get Width and Height of Image using Python January 4, 2021 (November 2, 2022) Python 0 Comments 479 Views Pillow library Install Pillow library from the command line: pip install Pillow Get width and height of an image: from PIL import Image img = Image.open('test.jpg') width, height = img.size print(str(width) + ' ' + str(height))
Leave a Comment
Cancel reply