Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: upgrade thumbnail quality #236

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

fire332
Copy link
Collaborator

@fire332 fire332 commented Dec 19, 2024

This PR adds an option to upgrade the quality of thumbnail images that is disabled by default. It doesn't upgrade thumbnails for shorts or if it's from an A/B test (I'm not sure A/B test thumbnails even have a higher quality than hqdefault).

It works by detecting thumbnail elements, parsing their URLs from their background-image inline style, rewriting the URL to use a higher quality version & with WebP if supported, loading the image in the background, and finally swapping the images out if it loads successfully.

This PR is built on top of #235. That should be merged before this one.

Fixes #175, fixes #196, fixes #231

@cremor cremor mentioned this pull request Dec 20, 2024
@Gartorf
Copy link

Gartorf commented Dec 21, 2024

Thank you! Will this be in the next release or how do I install this fix onto my 0.3.4 version?
(Newbie question I know!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants