You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 22, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 22, 2020. It is now read-only.
File extensions in Cache (& via API) do not reflect the true file format #30
I think I figured something out, a most of the code for detecting image format was already in place but never called. I added extension as a required argument to the Thumbnail constructor.
Activity
relekang commentedon Oct 14, 2017
Nice catch, this is most definitively a bug. I think I found the source: The Thumbnail model has hardcoded jpg as extension. Do you want to look into fixing it?
bschollnick commentedon Oct 27, 2017
I don't see an easy way to do this as written in the code.
The original filename is not send to the thumbnail object, so the only way I see to do that is to add something like:
where:
class Thumbnail(object):
But that's not elegant at all. But It works...
fix: Pass in extension to Thumbnail constructor
relekang commentedon Oct 27, 2017
I think I figured something out, a most of the code for detecting image format was already in place but never called. I added extension as a required argument to the
Thumbnailconstructor.@bschollnick Does latest master work any better?