feat(scripts): make-demo-gif.sh — produce optimized README hero GIF (Closes #7)#17
Merged
Conversation
…loses #7) Turn a screen recording (.mov from QuickTime/OBS) into a README-ready optimized GIF. Two-stage pipeline so input format/codec doesn't matter: 1. ffmpeg trim + scale + fps + drop audio → intermediate mp4 2. gifski (preferred, perceptual quantizer) or ffmpeg palettegen+ paletteuse fallback → final gif Defaults tuned for UI demos: DURATION=15, WIDTH=900, FPS=15, TARGET_MAX_MB=10 All overridable via env vars. The script warns (doesn't fail) when the output exceeds the soft limit and suggests three knobs to turn. Usage: scripts/make-demo-gif.sh ~/Desktop/runloop-demo.mov # → docs/screenshots/flow-editor.gif
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
scripts/make-demo-gif.sh— turns a.movscreen recording into a README-ready optimized GIF.Pipeline
The two-stage approach means input codec/container doesn't matter — works for QuickTime
.mov, OBS.mp4, ScreenStudio.mov, etc.Defaults
Tuned for UI demos:
DURATIONWIDTHFPSTARGET_MAX_MBAll overridable as env vars. Script warns (doesn't fail) when output exceeds the soft limit and suggests three knobs to turn.
Usage
Closes
Closes #7
Follow-up (separate PR, after first GIF is recorded)
Update README hero to
<picture>block:Test plan
bash -n) clean