Open narrowfail opened 9 years ago
I did some debug and found this:
encoder = <built-in function jpeg_encoder>
args = ('RGB',)
mode = 'RGB'
encoder_name = 'jpeg'
extra = (95, True, 0, True, 0, 0.0, 0.0, -1, None, '', '')
The problem was:
File Type: PC bitmap, Windows 3.x format, 285 x 78 x 24 MIME Type: image/x-ms-bmp Suggested file extension(s): bmp
The file is a BMP, not a JPG.
Is there any way to avoid crashin the site just because an image has a bad extension? Thanks!
Thank you for reporting this. I'll look into it. What is THUMBNAIL_PRESERVE_FORMAT
set to?
THUMBNAIL_PRESERVE_FORMAT is set to the default value because I didn't change it.
Can you try to set it to True?
Same error: Exception Type: TypeError Exception Value: integer argument expected, got float This is the image that generates the error: http://www.msnj.org/media/nvftnkjx.jpg
Thank you for checking, I look into this as soon as possible
Sorl (Pillow) also crashes if you upload a TIFF but don't have it compiled with tiff support. (libtiff missing)
Got the following Traceback while using sorl-thumbnail 11.12.1b in production using Pillow.