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
Thus, when the file save is tried, with filetype="JPEG" (and a .jpg file extension), this fails, causing the original image to be returned.
(On this line:
#1781 fixed the previous issue where creation of thumbnails would fail for JPGs as they couldn't be converted to RGBA.
However, there's still a problem if the thumbnail will be created with padding, as the new Image is created as RGBA on this line:
mezzanine/mezzanine/core/templatetags/mezzanine_tags.py
Line 416 in cf6c79c
Thus, when the file save is tried, with filetype="JPEG" (and a .jpg file extension), this fails, causing the original image to be returned.
(On this line:
mezzanine/mezzanine/core/templatetags/mezzanine_tags.py
Line 425 in cf6c79c
What we should probably do is for JPEGs where the thumbnail has padding is to save them as PNGs.
Possibly this can be done as simply as:
It's a little crude, as the thumbnail will have a ".jpg.png" extension, but it's the simplest fix I can think of.
Thoughts?
The text was updated successfully, but these errors were encountered: