2014-02-19 00:11:24 +04:00
|
|
|
# gifsicle
|
|
|
|
|
2018-01-18 21:48:27 +03:00
|
|
|
> Create GIFs.
|
2019-06-07 13:58:24 +03:00
|
|
|
> More information: <https://www.lcdf.org/gifsicle>.
|
2014-02-19 00:11:24 +04:00
|
|
|
|
2018-07-05 18:27:52 +03:00
|
|
|
- Optimise a GIF:
|
|
|
|
|
|
|
|
`gifsicle --batch --optimize=3 {{amin.gif}}`
|
|
|
|
|
2016-01-16 17:12:05 +03:00
|
|
|
- Make a GIF animation with gifsicle:
|
2014-02-19 00:11:24 +04:00
|
|
|
|
2014-02-20 16:01:42 +04:00
|
|
|
`gifsicle --delay={{10}} --loop *.gif > {{anim.gif}}`
|
2014-02-19 00:11:24 +04:00
|
|
|
|
2016-01-16 17:12:05 +03:00
|
|
|
- Extract frames from an animation:
|
2014-02-19 00:11:24 +04:00
|
|
|
|
2014-02-20 16:01:42 +04:00
|
|
|
`gifsicle {{anim.gif}} '#0' > {{firstframe.gif}}`
|
2014-02-19 00:11:24 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- You can also edit animations by replacing, deleting, or inserting frames:
|
2014-02-19 00:11:24 +04:00
|
|
|
|
2014-02-20 16:01:42 +04:00
|
|
|
`gifsicle -b {{anim.gif}} --replace '#0' {{new.gif}}`
|