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

Add support for high quality and responsive Youtube preview images #582

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

onnimonni
Copy link
Contributor

Description

I asked feedback about my website and my friend shared great point that the default Youtube preview images are quite blurry.

I learned how img srcsets work and added support for high quality alternative webp photos.

I tested this on locally with chrome and it skips completely the default jpg and preloads only the highest available image on desktop.

Notion Test Page ID

0f7d9b7aec8b4d16a064886b245badef

Preview images

This is how it currently looks in production at https://keksi.io
Screenshot 2024-11-11 at 21 44 51
This is how it looks in my localhost:3000
Screenshot 2024-11-11 at 21 44 09

Copy link

vercel bot commented Nov 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
react-notion-x ✅ Ready (Inspect) Visit Preview Nov 11, 2024 8:01pm
react-notion-x-minimal-demo ✅ Ready (Inspect) Visit Preview Nov 11, 2024 8:01pm

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

Successfully merging this pull request may close these issues.

1 participant