![]() ![]() But be careful with options that do take arguments: ‘ -cblah’ means ‘ -c blah’, not ‘ -c -b -l -a -h’. You can combine short options if they don't take arguments: ‘ -IIb’ is the same as ‘ -I -I -b’. Some options also have a short form, ‘ -X’. You don't need to type the whole long descriptive name, just enough to make it unambiguous. OptionsĮvery option has a long form, ‘ -long-descriptive-name’. Gifsicle exits with status 0 if there were no errors and status 1 otherwise. If no GIF input file is given, or you give the special filename ‘-’, it reads from the standard input. Gifsicle reads and processes GIF input files in order. Most options start with a dash (-) or plus (+) frame selections, a kind of option, start with a number sign (#). Gifsicle's command line consists of GIF input files and options. optimize, -unoptimize, -colors, -lossy Image transformations croppingįrame selections (like '#0') Transparency extension, -app-extension, -extension-info File size change-color, -use-colormap, -dither, -transform-colormap reducing number Animations, changingįrame selections, frame changes, etc. Concept IndexĬoncepts are on the left, relevant gifsicle options are on the right. New users may want to skip to the Examples section at the end. To interlace all the GIFs in the current directory, you could say: gifsicle -batch -i *.gif With -batch, gifsicle will modify the files you specify instead of writing a new file to the standard output. To modify GIF files in place, use the -batch option. Use options like -delay, -loopcount, and -optimize to tune your animations. By default, it combines two or more input files into a “flipbook” animation: gifsicle pic1.gif pic2.gif pic3.gif > animation.gif ![]() Gifsicle is good at creating and manipulating GIF animations. The -i option, for example, tells gifsicle to interlace its inputs: gifsicle -i interlaced-pic.gif Gifsicle normally processes input GIF files according to its command line options and writes the result to the standard output. Gifsicle is a powerful command-line program for creating, editing, manipulating, and getting information about GIF images and animations. Modify all frames of a GIF using specific transformation options: gifsicle -b -crop 50, 50+ -50x -50 -scale 0.25 -flip-horizontal -rotate-90 path/to/input.gif.Delete the first 10 frames and all frames after frame 20 from a GIF: gifsicle -b path/to/input.gif -delete '# 0-9' '# 20-'.Reduce file size using lossy compression: gifsicle -b path/to/input.gif -optimize=3 -lossy= 100 -colors= 16 -dither.Make a GIF animation from selected GIFs: gifsicle *.gif -delay= 10 -loop > path/to/output.gif.Extract a frame from a GIF: gifsicle path/to/input.gif '# 0' > path/to/firstframe.gif.Unoptimize a GIF in place: gifsicle -b path/to/input.gif -unoptimize.Optimize a GIF as a new file: gifsicle path/to/input.gif -optimize=3 -o path/to/output.gif.Manipulates GIF images and animations Examples (TL DR)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |