gifsicle: update page (#8403)

pull/1/head
Cairn 2022-08-30 15:49:03 -04:00 committed by GitHub
parent 8fa1e47ba3
commit d360ef4418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 9 deletions

View File

@ -1,20 +1,32 @@
# gifsicle # gifsicle
> Create GIFs. > GIF manipulator.
> More information: <https://www.lcdf.org/gifsicle>. > More information: <https://www.lcdf.org/gifsicle>.
- Optimise a GIF: - Optimize a GIF as a new file:
`gifsicle --batch --optimize=3 {{amin.gif}}` `gifsicle {{path/to/input.gif}} --optimize=3 -o {{path/to/output.gif}}`
- Make a GIF animation with gifsicle: - Unoptimize a GIF in place:
`gifsicle --delay={{10}} --loop *.gif > {{anim.gif}}` `gifsicle -b {{path/to/input.gif}} --unoptimize`
- Extract frames from an animation: - Extract a frame from a GIF:
`gifsicle {{anim.gif}} '#0' > {{firstframe.gif}}` `gifsicle {{path/to/input.gif}} '#{{0}}' > {{path/to/firstframe.gif}}`
- You can also edit animations by replacing, deleting, or inserting frames: - Make a GIF animation from selected GIFs:
`gifsicle -b {{anim.gif}} --replace '#0' {{new.gif}}` `gifsicle {{*.gif}} --delay={{10}} --loop > {{path/to/output.gif}}`
- Reduce file size using lossy compression:
`gifsicle -b {{path/to/input.gif}} --optimize=3 --lossy={{100}} --colors={{16}} --dither`
- Delete the first 10 frames and all frames after frame 20 from a GIF:
`gifsicle -b {{path/to/input.gif}} --delete '#{{0-9}}' '#{{20-}}'`
- Modify all frames of a GIF using specific transformation options:
`gifsicle -b --crop {{50}},{{50}}+{{-50}}x{{-50}} --scale {{0.25}} --flip-horizontal --rotate-90 {{path/to/input.gif}}`