The special filename ‘-’ means the standard output. Like -info, but also print information about compressed image sizes. Like -info, but also print any unrecognized GIF extensions in a hexdump(1)-like format. Like -info, but also print information about input files' colormaps. If you give two -info or -I options, however, information is printed to standard error, and normal output takes place as usual. This option suppresses normal output, and cannot be combined with mode options like -batch. Print a human-readable description of each input GIF to the standard output, or whatever file you specify with -o. The info options and -verbose can be turned off with ‘ -no-X’. General options control the information gifsicle prints and where it writes its output. Frames are named using the ‘ -name’ option. Same as -explode, but write any named frames to files ‘xxx. The output GIFs are named ‘xxx.000’, ‘xxx.001’, and so on, where ‘xxx’ is the name of the input file (or whatever you specified with ‘ -output’) and the numeric extension is the frame number. (GIFs read from the standard input are written to the standard output.) -explode, -eĬreate an output GIF for each frame of each input file. Modify each GIF input in place by reading and writing to the same filename. merge, -mĬombine all GIF inputs into one file with multiple frames and write that file to the standard output. There can be at most one, and it must precede any GIF inputs. Mode options tell gifsicle what kind of output to generate. You can turn off a short option ‘ -X’ by saying ‘ +X’ instead. Many options also have a converse, ‘ -no-option’, which turns off the option. 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 |