from PIL import Image
im = Image.open('whatever.png')
width, height = im.size
According to the documentation.
More Related Contents:
- How do I resize an image using PIL and maintain its aspect ratio?
- How to convert a PIL Image into a numpy array?
- In Python, how do I read the exif data for an image?
- How to merge a transparent png image with another image using PIL
- How to reduce a jpeg size to a ‘desired size’?
- Get pixel’s RGB using PIL
- Image library for Python 3
- Python: The _imagingft C module is not installed
- How to use PIL to make all white pixels transparent?
- PIL: Convert Bytearray to Image
- Changing image hue with Python PIL
- How do you merge images into a canvas using PIL/Pillow?
- Getting list of pixel values from PIL
- PIL and pygame.image
- Can you “stream” images to ffmpeg to construct a video, instead of saving them to disk?
- How to Split Image Into Multiple Pieces in Python
- PIL – draw multiline text on image
- How to convert a grayscale image into a list of pixel values?
- Convert png to jpeg using Pillow
- How to read a raw image using PIL?
- Convert PIL Image to byte array?
- How to show PIL images on the screen?
- Change EXIF data on JPEG without altering picture
- img = Image.open(fp) AttributeError: class Image has no attribute ‘open’
- Detecting thresholds in HSV color space (from RGB) using Python / PIL
- Colorize image while preserving transparency with PIL?
- Add Text on Image using PIL
- PIL “IOError: image file truncated” with big images
- Automatically cropping an image with python/PIL
- How to get alpha value of a PNG image with PIL?