Problem
Media assets (GIFs, MP4s, PNGs) in the repo are uncompressed, currently totalling ~16-17MB.
These get heavier over time as examples are added/updated
Proposed Solution
Add a GitHub Actions workflow that:
- Compresses all existing and future
PNGs, GIFs, and MP4s via CI
- Runs automatically on push to
main when media files change
- Can be triggered manually (
workflow_dispatch) to compress all existing assets
Compression happens at CI time, not runtime, and the bot commits the compressed files back.
Additional context
Problem
Media assets (
GIFs,MP4s,PNGs) in the repo are uncompressed, currently totalling ~16-17MB.These get heavier over time as examples are added/updated
Proposed Solution
Add a GitHub Actions workflow that:
PNGs,GIFs, andMP4svia CImainwhen media files changeworkflow_dispatch) to compress all existing assetsCompression happens at CI time, not runtime, and the bot commits the compressed files back.
Additional context