Skip to content

Add video previews and image thumbnails for examples #155

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

Open
aglitchman opened this issue May 17, 2025 · 5 comments
Open

Add video previews and image thumbnails for examples #155

aglitchman opened this issue May 17, 2025 · 5 comments

Comments

@aglitchman
Copy link
Contributor

Information through graphics is understood much better than pure text.

It would be great if it were technically possible to design the examples directory with pictures and automatically playing videos if they are in the browser viewport:

Something like:

Image

PS I am ready to make videos and pictures for all examples!

@britzl
Copy link
Collaborator

britzl commented May 19, 2025

I agree. This would be a nice improvement!

@aglitchman
Copy link
Contributor Author

Plus, the URL of the image should be added to opengraph metadata of the page for nice previews, not generic as now:

Image

@aglitchman
Copy link
Contributor Author

Can we use webp for images and webm for videos? It's about time they are supported everywhere and in any OS they can be viewed normally, like png/jpg.

WebM with VP9 codec for videos - https://caniuse.com/?search=webm
WebP for thumbnails - https://caniuse.com/?search=webp
And use https://squoosh.app/ for image compression.

@britzl
Copy link
Collaborator

britzl commented May 23, 2025

Plus, the URL of the image should be added to opengraph metadata of the page for nice previews, not generic as now:

Image

This has been added now. If an example has a thumbnail it will be used for the opengraph metadata.

@britzl
Copy link
Collaborator

britzl commented May 23, 2025

Can we use webp for images and webm for videos?

Sure, I don't see why not!

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

No branches or pull requests

2 participants