affine spaces code example Example: size pilimage from PIL import Image MyImage = Image.open('path/to/my/image.jpg') width, height = MyImage.size