This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Image thumbnail improvements (dimensions, compression) #531
Labels
💻 aspect: code
Concerns the software code in the repository
✨ goal: improvement
Improvement to an existing user-facing feature
🟩 priority: low
Low priority and doesn't need to be rushed
Projects
Problem
Currently on the frontend, there are two optimizations we could make with thumbnails:
https://api.openverse.engineering/v1/images/3fa11800-4907-43d0-9921-52ed5ddb22aa/thumb/
a 56% size reduction with minimal obvious visual differences:
Description
While images are pretty "cheap" for browsers, compared to something like JS, because they don't need to be parsed, and
we're employing lazy-loading in Openverse, this would not really effect the percieved performance of the site. Or if it did, it would likely de negligible. However, it would significantly improve the number of real bytes transferred to users, and that's always a wonderful thing.
This could be a good opportunity to give our thumbnail cache some basic sizing options, because then we could also use it on the single result pages, instead of hotlinking to our 3rd party providers.
The text was updated successfully, but these errors were encountered: