Corrupt EXIF data. Expecting to read 4 bytes but only got 0. code example
Example: serWarning: Possibly corrupt EXIF data. Expecting to read
warnings.filterwarnings("ignore", "(Possibly )?corrupt EXIF data", UserWarning)
with Image.open("problematic_image.jpg") as image:
# do something with image