Gifsicle

Resize a .GIF that exceeds Twitter's 15 megabyte limit
gifsicle --resize 320x400 --colors 256 2jgn6j.gif > new.gif

Extract the first frame of a GIF to a JPG file
gifsicle corgi-computer.gif '#0' > firstframe.jpg