GIFSICLE(1) General Commands Manual GIFSICLE(1) (NAME) gifsicle - GIF (SYNOPSIS) gifsicle [ ]... (DESCRIPTION) gifsicle GIF . gifsicle GIF . -i gifsicle (interlaced) : gifsicle -i < pic.gif > interlaced-pic.gif gifsicle ("flipbook") : gifsicle pic1.gif pic2.gif pic3.gif > animation.gif --delay, --loopcount --optimize . (in-place) GIF --batch . --batch gifsicle . GIF : gifsicle --batch -i *.gif . (CONCEPT INDEX) gifsicle . (disposal) --disposal (looping) --loopcount (frame selections) --optimize, --colors, --lossy --delay --careful --background --change-color, --use-colormap, --dither, --transform-colormap --colors, --dither, --gamma (Comments) --comment (Extensions) --extension, --app-extension, --extension-info --optimize, --unoptimize, --colors, --lossy (cropping) --crop, --crop-transparency (flipping) --flip-* (resizing) --resize, --scale (rotating) --rotate-* (Grayscale) --use-colormap (Interlacing) --interlace --position --logical-screen ( '#0') (Transparency) --transparent --no-warnings (COMMAND LINE) gifsicle GIF . (-) (+) (#) . GIF . gifsicle GIF . GIF `-' (standard input) . gifsicle 0 1 . (OPTIONS) : `--long-descriptive-name'. . : `-X'. : `-IIb' `-I -I -b' . : `-cblah' `-c blah' `-c -b -l -a -h'. : `--no-option' . `-X' `+X' . (Mode Options) gifsicle . GIF . --merge, -m GIF . . --batch, -b GIF (in place) . ( GIF .) --explode, -e GIF . `xxx.000' `xxx.001' `xxx' ( `--output') . --explode-by-name, -E --explode `xxx.frame-number' `xxx.name' . `--name' . (General Options) gifsicle . --verbose `--no-X' . --info, -I GIF -o . --batch . --info -I (stderr) . --color-info, --cinfo --info (colormap) . --extension-info, --xinfo --info GIF hexdump(1) . --size-info, --sinfo --info . --help, -h . -o file --output file file . `-' . --verbose, -V ( ) . --no-warnings, -w . --no-ignore-errors GIF 1 . . --version . --careful GIF GIF . Gifsicle . --careful . --conserve-memory . GIF . --no-conserve-memory . --nextfile GIF . gifsicle . . GIF "gifsicle --nextfile -d10 - -d20 - -d30 - > out.gif" GIF gifsicle . --multifile --nextfile GIF . . GIF "gifsicle --multifile - > out.gif" GIF gifsicle . . (Frame Selections) gifsicle . GIF . : #num num . ( `#0' . `#-1' .) #num1-num2 num1 num2 . #num1- num1 . #name name . `#' (shells) () . gifsicle happy.gif "#0" happy.gif gifsicle happy.gif "#0-2" gifsicle happy.gif "#-1-0" ( #-1 -- -- #0 -- ). . (merge) . (batch) . (explode) GIF . (Frame Change Options) . -- -- . --delete frames [frames...] frames GIF . --insert-before frame other-GIFs other-GIFs frame GIF . --append other-GIFs other-GIFs GIF (append) . --replace frames other-GIFs frames GIF other-GIFs . --done . frames ( ). GIF . `a.gif' `b.gif' : gifsicle a.gif --delete "#0" --replace "#2" b.gif : `a.gif' `b.gif'. other-GIFs GIF . (merge) GIF . other-GIFs `in.gif' `a.gif' `b.gif' : gifsicle -b in.gif --replace "#0" a.gif b.gif `in.gif' `a.gif' `b.gif' : gifsicle -b in.gif --replace "#0" a.gif --done b.gif : GIF . (Image Options) -- (interlacing) (transparency) (cropping). : `--X' `--no-X' `--same-X'. `--X' `--no-X' `--same-X' . `--same-X' . --background="#0000FF" --no-background ( 0) --same-background . gifsicle -b -O2 -i a.gif --same-interlace b.gif c.gif `a.gif' `b.gif' `c.gif' . -B color --background color GIF color . --transparent . --crop x1,y1-x2,y2 --crop x1,y1+widthxheight . - (x1,y1) - (x2,y2) . x1,y1+widthxheight width height . . --crop 2,2+-2x-2 . . --crop-transparency . --crop . . --flip-horizontal --flip-vertical (flip) . -i --interlace (interlacing) . -S widthxheight --logical-screen widthxheight (logical screen) widthxheight . --no-logical-screen --same-logical-screen . --screen --logical-screen . -p x,y --position x,y (x,y) . --no-position --position 0,0. . --position x,y x,y . x,y . --rotate-90 --rotate-180 --rotate-270 . --no-rotate . -t color --transparent color color (transparent) . Color (0-255) ( "#FF00FF" ) ( 0 255) . (Extension Options) GIF . . --app-extension app-name extension app-name extension GIF . --no-app-extensions . -c text --comment text () text GIF . . --no-comments . --extension number extension number extension GIF . Number `n' ASCII . --no-extensions ( +x) . -n text --name text text . GIF ( 0xCE ). --no-names . (Animation Options) GIF . : `--X' `--no-X' `--same-X' gifsicle -b a.gif -d50 "#0" "#1" -d100 "#2" "#3" 0 1 50 2 3 100 . -d time --delay time time . -D method --disposal method / (disposal method) method . . Method 0 7 ( 0 3 ) : none ( ) asis ( "none") background ( bg) ( ) previous ( ). --no-disposal --disposal=none . -l[count] --loopcount[=count] (Netscape loop extension) count . Count forever . --loopcount count Gifsicle forever . --no-loopcount ( ) . (loop count) . --no-loopcount --loopcount=1 . --loopcount=0 --loopcount=forever --no-loopcount. -O[level] --optimize[=level] GIF . Level . : -O1 . . -O2 . -O3 ( ). . -Okeep-empty ( ). GIF -k --lossy --no-extensions. -O -O3 . -U --unoptimize GIF (unoptimized) . GIF ( --optimize ) . --unoptimize GIF . (Image Transformation Options) GIF . `--no-option' . --resize widthxheight GIF width height . width height `_' (aspect ratio) . . ( GIF ) --no-logical-screen ( +S) gifsicle . --resize-method . --resize-width width --resize-height height . --resize widthx_ --resize _xheight . --resize-fit widthxheight --resize-touch widthxheight GIF widthxheight . . --resize-fit -- GIF . --resize-touch GIF width height . width height `_' . --resize-fit-width width --resize-fit-height height --resize-touch-width width --resize-touch-height height --resize-fit --resize-touch . --resize-geometry geometry (geometry) ImageMagick GraphicsMagick . Geometry `widthxheight[%][!][^][<][>]' width height ( `_' ) . : % . ! . < . > . ^ . --scale Xfactor[xYfactor] GIF Xfactor Yfactor . Yfactor Xfactor . . --resize-method method . `sample' . `mix' . `mix' . : . `sample' : . . . `box' ( ). `mix' (bilinear) . Gifsicle Catmull-Rom ( `catrom') Mitchell-Netravali ( `mitchell') Lanczos (`lanczos2') Lanczos (`lanczos3'). . --resize-colors n Gifsicle (intermediate colors) . Gifsicle . ( ) . : --resize-colors 64 Gifsicle . (Color Options) GIF . `--no-option' . -k num --colors num GIF num . Num . GIF . . --color-method --use-colormap . Gifsicle ( num+1 ) . --color-method method . `diversity' xv(1) . `blend-diversity' : . `median-cut' (median cut) Heckbert . --method --color-method . -f --dither[=method] --dither . . / (dithering) method . `floyd-steinberg' - (Floyd-Steinberg) . . `atkinson' (Atkinson) - . Gifsicle (ordered dithering) . `ro64' . `o3' `o4' `o8' . `ordered' . (halftone) `halftone' `squarehalftone' `diagonal' . . : `halftone,10,3' . --gamma gamma gamma `srgb' ( ) `oklab' . . sRGB ( --gamma=2.2 ). Gifsicle (--colors) (--dither) (--lossy) . --lossy[=lossiness] . Lossiness . lossiness . Gifsicle --gamma . --lossy --gamma=1 . --change-color color1 color2 color1 color2 GIF . ( color -t .) . `--change-color color1 color2 --change-color color2 color1' . GIF . --no-change-color . --transform-colormap command Command . GIF ( --use-colormap ) (pipe) . ( ) . n n . --use-colormap colormap colormap . colormap ( --dither colormap) . Colormap web ("Web-safe palette") gray bw . ( ) GIF . --colors=N N- colormap . : ; : "red green blue" ; 0 255 0 0 0 ; 255 255 255 ; #ffffff ; --use-exact-colormap colormap --use-colormap GIF colormap . (EXAMPLES) `anim.gif' : gifsicle a.gif b.gif c.gif d.gif > anim.gif : . --delay : gifsicle --delay 50 a.gif b.gif c.gif d.gif > anim.gif GIF --loopcount : gifsicle -d 50 --loop=3 a.gif b.gif c.gif d.gif > anim.gif ( --delay -d . `gifsicle --help' . --loopcount --loop `loop' .) `anim.gif' : gifsicle --explode anim.gif ls anim.gif* anim.gif anim.gif.000 anim.gif.001 anim.gif.002 anim.gif.003 `anim.gif': gifsicle -b -O2 anim.gif `anim.gif' `x.gif': gifsicle -b --unoptimize -O2 anim.gif --replace "#1" x.gif --unoptimize `anim.gif' . GIF --unoptimize . . --unoptimize --optimize . --unoptimize GIF --optimize GIF . `anim.gif': gifsicle -I "#0" "#3" < anim.gif GIF : gifsicle -bII --trans "#000000" *.gif -I . -I GIF . `anim.gif' : gifsicle -b --colors=64 --use-col=web anim.gif `anim.gif': gifsicle --dither --use-col=bw anim.gif > anim-bw.gif GIF -- GIF -- gifsicle : gifsicle bottom.gif top.gif | gifsicle -U "#1" > result.gif (BUGS) GIF GIF ( ) --careful . ekohler@gmail.com . (SEE ALSO) GIF webreference.com : http://www.webreference.com/authoring/graphics/animation.html (AUTHORS) Eddie Kohler http://www.read.seas.harvard.edu/~kohler . Anne Dudfield http://www.frii.com/~annied . Hans Dinsen-Hansen http://www.danbbs.dk/~dino GIF. Kornel Lesin'ski --lossy. http://www.lcdf.org/gifsicle gifsicle . Version 1.96 26 February 2025 GIFSICLE(1)