Closed jensens closed 3 months ago
Btw., this is general, not image cropping related.
There is a PIL setting we can use to let it make a best effort to load such images even if it detects they are truncated, instead of raising an error: https://pillow.readthedocs.io/en/stable/reference/ImageFile.html#PIL.ImageFile.LOAD_TRUNCATED_IMAGES
I think that's appropriate here. I would still like to see the part of the image that can be loaded (and in the case I'm looking at currently, it is not obviously broken).
Damaged images fail on scale, this info should somehow be shown to the user...