from PIL import Image, ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True Image.open('image.jpg').load()