Easy-thumbnails not generated for images with uppercase extensions

189 Views Asked by At

I am using the latest version of easy-thumbnails and it is working great except that when a user tries to upload an image with an uppercase extension e.g. image.JPG, no thumbnail gets generated. I have confirmed that my simply changing the JPG to jpg, all works well. How can I get this fixed please?

Update

As a temporary workaround, I have written a rename function on the model changing the extention to lowercase.

1

There are 1 best solutions below

2
On

Could you try to put this line on your project's settings.py file:

THUMBNAIL_PRESERVE_EXTENSIONS = None

Tell me if it works like this, maybe this forces the module to process that kind of image.

However, it's not very common to have such uppercase extensions.