sorl/sorl-thumbnail — Issue #70: Handling corrupted images before converting to thumbnail
Author: kimsterv
Created: 2011-12-02 19:21:58+00:00
State: open

I allow users to upload images, and I'm trying to figure out the best way to verify their image before I save it. Right now SORL is throwing an exception from PIL (IOError: image file is truncated (33 bytes not processed) when I try to create a thumbnail from the corrupted image. Is there a best practice for verifying images before saving?