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