TOOL » IMAGE_MANIPULATOR

Gifsicle

Usage

Manipulates GIF images and animations.

shell
gifsicle OPTIONS FILE
OptionDescription
-I --infoPrint a human-readable description of each input GIF to the standard output.
-k --colorsReduce the number of distinct colors.
-o --outputSend output to file. The special filename - means the standard output.
--cropCrop the following input frames to a smaller rectangular area. Ex: x1,y1-x2,y2 x1,y1+widthxheight
--resizeResize the output GIF to the given width and height.
--resize-widthResize to a given width, preserving aspect ratio.
--resize-heightResize to a given height, preserving aspect ratio.
--resize-fitResize the output GIF to fit within a rectangle, preserving aspect ratio.
--scaleScale the output GIF's width and height by the given factor.
--resize-colorsAllow Gifsicle to add intermediate colors when resizing images.
--lossyAlter image colors to shrink output file size at the cost of artifacts and noise.

Examples

Crop, resize and use lossy compression:

shell
gifsicle --crop 140,30-360,280 --colors 256 --resize-height 180 --lossy=45 --output out.gif in.gif