/opt/anaconda3/lib/python3.8/site-packages/PIL/TiffImagePlugin.py:770: UserWarning: Possibly corrupt EXIF data. Expecting to read 8 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