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

docs: convert gifs to webm for better performance #3478

Merged
merged 5 commits into from
Jan 17, 2025

Conversation

mscolnick
Copy link
Contributor

@mscolnick mscolnick commented Jan 17, 2025

This converts gifs to webm for better performance. I still need to actually update the docs.

❯ python convert_gif_to_webm.py -- --folder ../docs/_static
Found 23 GIF files. Starting conversion...
Skipping ../docs/_static/docs-intro-app.gif - output already exists
Size reduced by 84.9%
Original: 11392.2KB
New: 1725.0KB
--------------------------------------------------
Skipping ../docs/_static/intro_condensed.gif - output already exists
Size reduced by 67.3%
Original: 2519.4KB
New: 823.3KB
--------------------------------------------------
Skipping ../docs/_static/docs-df.gif - output already exists
Size reduced by 79.1%
Original: 3513.6KB
New: 733.7KB
--------------------------------------------------
Skipping ../docs/_static/docs-dataframe-transform.gif - output already exists
Size reduced by 51.8%
Original: 2981.8KB
New: 1436.3KB
--------------------------------------------------
Skipping ../docs/_static/docs-intro.gif - output already exists
Size reduced by 74.4%
Original: 8773.8KB
New: 2249.6KB
--------------------------------------------------
Skipping ../docs/_static/docs-dataframe-table.gif - output already exists
Size reduced by -295.7%
Original: 417.3KB
New: 1651.3KB
--------------------------------------------------
Skipping ../docs/_static/embedding.gif - output already exists
Size reduced by 80.7%
Original: 4933.8KB
New: 951.8KB
--------------------------------------------------
Skipping ../docs/_static/reactive.gif - output already exists
Size reduced by 61.1%
Original: 830.6KB
New: 323.5KB
--------------------------------------------------
Skipping ../docs/_static/docs-state-tied.gif - output already exists
Size reduced by 49.6%
Original: 495.3KB
New: 249.7KB
--------------------------------------------------
Skipping ../docs/_static/docs-disable-cell.gif - output already exists
Size reduced by 47.4%
Original: 340.2KB
New: 179.1KB
--------------------------------------------------
Skipping ../docs/_static/readme.gif - output already exists
Size reduced by 21.0%
Original: 1695.0KB
New: 1338.6KB
--------------------------------------------------
Skipping ../docs/_static/docs-state-counter.gif - output already exists
Size reduced by 59.5%
Original: 593.7KB
New: 240.5KB
--------------------------------------------------
Skipping ../docs/_static/share-wasm-link.gif - output already exists
Size reduced by 87.9%
Original: 6734.4KB
New: 815.7KB
--------------------------------------------------
Skipping ../docs/_static/intro_tutorial.gif - output already exists
Size reduced by 44.4%
Original: 2188.2KB
New: 1216.0KB
--------------------------------------------------
Skipping ../docs/_static/docs-delete-cell.gif - output already exists
Size reduced by 49.6%
Original: 1427.2KB
New: 719.4KB
--------------------------------------------------
Skipping ../docs/_static/docs-model-comparison.gif - output already exists
Size reduced by 65.8%
Original: 1655.3KB
New: 565.3KB
--------------------------------------------------
Skipping ../docs/_static/readme-ui.gif - output already exists
Size reduced by 51.9%
Original: 479.3KB
New: 230.7KB
--------------------------------------------------
Skipping ../docs/_static/faq-marimo-ui.gif - output already exists
Size reduced by 45.5%
Original: 2336.4KB
New: 1272.3KB
--------------------------------------------------
Skipping ../docs/_static/readme-ui-form.gif - output already exists
Size reduced by 59.2%
Original: 1567.6KB
New: 639.2KB
--------------------------------------------------
Skipping ../docs/_static/outputs.gif - output already exists
Size reduced by 57.2%
Original: 4396.8KB
New: 1883.1KB
--------------------------------------------------
Skipping ../docs/_static/docs-markdown-toggle.gif - output already exists
Size reduced by 91.2%
Original: 7845.8KB
New: 690.4KB
--------------------------------------------------
Skipping ../docs/_static/docs-state-task-list.gif - output already exists
Size reduced by 53.8%
Original: 1681.8KB
New: 777.1KB
--------------------------------------------------
Skipping ../docs/_static/docs-enable-cell.gif - output already exists
Size reduced by 42.4%
Original: 536.2KB
New: 309.0KB
--------------------------------------------------

Copy link

vercel bot commented Jan 17, 2025

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

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 8:55pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 8:55pm

devin-ai-integration bot and others added 2 commits January 17, 2025 20:17
- Convert all GIF references in docs/ to HTML video tags
- Add autoplay and center alignment to all video tags
- Maintain original formatting and context
- Update documentation in multiple files including:
  - README.md
  - index.md
  - guides/state.md
  - guides/reactivity.md
  - guides/outputs.md
  - guides/interactivity.md
  - guides/working_with_data/dataframes.md
  - and more

Co-Authored-By: Myles Scolnick <myles@marimo.io>
Co-Authored-By: Myles Scolnick <myles@marimo.io>
@mscolnick mscolnick merged commit af17db4 into main Jan 17, 2025
21 of 23 checks passed
@mscolnick mscolnick deleted the ms/script-to-convert-to-webm branch January 17, 2025 20:56
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.10.14-dev37

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