gifsicle
Create, edit, manipulate, and get information about GIF files. tldr-pages
On several platforms
Several platforms
Optimize a GIF as a new file
gifsicle path/to/input.gif --optimize=3 --output path/to/output.gifIdentifyUse batch mode (modify each given file in place) and unoptimize a GIF
gifsicle --batch path/to/input.gif --unoptimizeIdentifyExtract a frame from a GIF
gifsicle path/to/input.gif '#0' >path/to/first_frame.gifIdentifyMake a GIF animation from selected GIFs
gifsicle *.gif --delay 10 --loop >path/to/output.gifIdentifyReduce file size using lossy compression
gifsicle --batch path/to/input.gif --optimize=3 --lossy=100 --colors 16 --ditherIdentifyDelete the first 10 frames and all frames after frame 20 from a GIF
gifsicle --batch path/to/input.gif --delete '#0-9' '#20-'IdentifyModify all frames by cropping them to a rectangle, changing their scale, flipping them, and rotating them
gifsicle --batch --crop starting_x,starting_y+rect_widthxrect_height --scale 0.25 --flip-horizontal --rotate-90 path/to/input.gifIdentify