Skip to content

Instantly share code, notes, and snippets.

@mrprofessor
Last active December 24, 2022 15:29
Show Gist options
  • Save mrprofessor/7e211409c2bea046e13f348a6ae471d9 to your computer and use it in GitHub Desktop.
Save mrprofessor/7e211409c2bea046e13f348a6ae471d9 to your computer and use it in GitHub Desktop.
Delete frames using gifsicle
#gifsicle -O3 -k 8 --lossy=80 -o tty-small.gif js_demo.gif
#gifsicle --lossy=80 -o tty-small.gif js_demo.gif
#gifsicle --delete "#0-12" -o tty-small1.gif tty-small.gif
#gifsicle tty-small.gif --delete "#0-12" -o tty-small.gif
# Make a copy of the file
cp $1 $2
gifsicle "$1" --delete "#1-10" -o "$2"
gifsicle "$2" --delete "#100-105" -o "$2"
echo "script completed"
@mrprofessor
Copy link
Author

gifsicle input.gif output.gif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment