Image type used for thumbnails is sometimes incorrectly extracted from the content type #3750
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
good first issue
New-contributor friendly
help wanted
Open to participation from the community
🟨 priority: medium
Not blocking but should be addressed soon
🧱 stack: api
Related to the Django API
Description
Reproduction
The image is a png, but extracting it from the head request is done incorrectly, and instead of
png
we getpng;charset=UTF-8
Additional context
openverse/api/api/utils/image_proxy/extension.py
Lines 77 to 83 in 8a939a4
Adding a
.split(";")[0]
could probably fix this.The text was updated successfully, but these errors were encountered: