📄 whirlgif.1
字号:
.\" whirlgif.1.\".\" The Graphics Interchange Format (c) is the Copyright property of.\" Compuserve Incorporated. GIF(sm) is a Service Mark property of.\" Compuserve Incorporated..\".TH WHIRLGIF 1 "February 1999".AT 3.SH NAMEwhirlgif \- reads a series of GIF87a orGIF89a files, and producesone single GIF89a file composed of those images..SH SYNOPSIS.B whirlgif.RI [ "global-options" ].RI [ "file-options " { GIFfile "|\fB-i\fP " incfile "}] ...".spThe.I global-optionsare one or more of:.br.in +5.B \-v.br.BI \-trans " index".br.BR \-background " {\fIcolor\fP|\fIindex\fP}".br.B \-time.I delay.br.B \-globmap.br.B \-minimize.br.B \-o.I outfile.br.B \-loop.RI [ count ].br.B \-comment.I comment.br.B \-disp.I method.in -5.spThe.I file-optionsare one or more of:.br.in +5.B \-off.I x:y-pair.br.BR \-trans " {\fIcolor\fP|\fIindex\fP}".br.B \-time.I delay.br.B \-disp.I method.sp.SH DESCRIPTIONWhen.I Whirlgifprocesses a series of GIF files,the first file defines the so called screen size and the backgroundcolor of the resulting GIF. The background color may be changed by anoption..spThe input files may be in either GIF87a or GIF89a format. If a GIFfile contains more than one image, only the first image is read. Tohelp saving bandwidth on the internet, there are options for forcingall GIFs in the series to use the same color map and to createsub-GIFs which only give the difference between one image and the next..PP.SH OPTIONS.PP.TP.B \-vVerbose mode. Output is written to the error out file.This is a global option and must be given before any.IR GIFfile s..TP\fB\-trans\fP \fIindex\fP|\fIcolor\fPSet the color identified with.I indexor the color code.BI # xxxxxx \fR,\fPwhere.I xxxxxxis a hex.B RGBindex to be transparent.When this option is used as a.IR file-option ,its setting is valid for all subsequent.IR GIFfile s,until it is used again..TP\fB\-background\fP indexSet the color identified with its.I indexto be the background color, possiblyoverriding the background color defined in the first.IR GIFfile .This is a global option and must be given before any.IR GIFfile s..TP\fB\-time\fP \fIdelay\fPDefines inter\-frame timing in units of 1/100 second. Whenever a value of\fIdelay\fP is set by means of the \fB\-time\fP option, this value willbe valid for the following.IR GIFfile suntil a new value is set..TP\fB\-globmap\fPUse the color map of the first.I GIFfileas the global color map throughoutthe.IR outfile .If the color maps of subsequent.IR GIFfile scontaincolors that are not in the global color map, the nearest colors in a3 dimensional RGB space will be chosen.This is a global option and must be given before any.IR GIFfile s..TP\fB\-minimize\fPOnly the smallest rectangles covering the difference between two.IR GIFfile swill be output. All.IR GIFfile smust be of the same size and have the same offset.This is tested, and may result in an error message.This is a global option and must be given before any.IR GIFfile s..spAs a side effect, the \fB\-minimize\fPoption forces the same (global)color map to be used throughout the.IR outfile ..TP\fB\-o\fP outfileWrite the results to.I outfileThis is a global option and must be given before any.IR GIFfile s..TP\fB\-loop\fP [\fIcount\fP]Add the Netscape 'loop' extension. If count is omitted, 0 (zero) isassumed.This is a global option and must be given before any.IR GIFfile s..TP.B "\-comment \fIcomment\fP"Define a \fBComment Extension\fP blockwithin the resulting GIF file.This block will be written at the end of the file.A comment block can be at most 254 characters long, including lineshifts.It may be used for copyright notices.This is a global option and must be given before any.IR GIFfile s..TP\fB\-disp\fP \fImethod\fPSets the image 'disposal' method. When this option is used as a.IR file-option ,its setting is valid for all subsequent.IR GIFfile s,until it is used again. The methods may be one ofthe keywords:.sp.in +5.ti -5.B noneNo disposal specified..sp.ti -5.B backRestore to background color.Fill the image's space with the background color..sp.ti -5.B prevRestore to previous, restores the screen areato what was there before. Netscape has a problem with this option..sp.ti -5.B notDo not dispose. The default, the next image will overlay this one..sp.in -5.TP\fB\-i\fP incfileRead a list of names from.I incfile.TP.B "\-off \fIx:y-pair\fP"Sets the position of the next.I GIFfileor the set of.IR GIFfile sin an.IR incfile ..spThe \fIx:y-pair\fP consists of two integers, separated by onecharacter which cannot be part of a number. A colon, ':' is preferred.The two integers define the position of the upper left corner of thenext image within the 'screen' of the resulting GIF.The integers are added to a possible offset within the next.IR GIFfile .One or both may be negative.Negative numbers will re-position an image upwardsand/or to the left within its own 'screen'.The 'screen' of a GIF is the term used in the GIF definitions for thearea, a GIF covers..SH TIPS.PPIf you don't specify an output file, the GIF will be sent to stdout.This is a good thing if you're using whirlgif in a CGI script,but could cause problems if you run from a terminal and forget toredirect stdout..spThe output file (if any) and the loop option.B MUSTbe specified before any GIF images..spYou can specify several delay statements on the command line to changethe delay between images in the middle of an animation, e.g..sp.ti -5whirlgif \-time 25 a.gif b.gif c.gif \-time 100 d.gif \-time 25 e.gif f.gif.spUsually, the bacground color is defined by the first.IR GIFfile ,and often it is index number zero (0).If you are animating with a transparent color,a good method is usually to use the same color as the background..spIt is possible, but may cause problems for some programs, to specifyseveral transparency statements on the command line..spThe size of the resulting GIF and the global color map isdefined by the first.IR GIFfile .If you have a large background GIF and have several smaller GIFs, youmay make some kind of a bulletin board by a command of the following form:.sp.ti -5whirlgif large.gif -off 77:44 small1.gif -off 22:99 small2.giff ....spYou may build in some timing between the small GIFs..SH LIMITATIONS.PPThe loop 'count' is ineffective because Netspcape always loops infinitely..SH BUGS.PP.I Whirlgifshould be able to specify delay and offset in an 'incfile' list (see next bug)..spDoes not handle filenames starting with a \- (hypen), except in 'incfile'..SH TODO.PP.ti +2\- Make a graphic interface. Perhaps by re-implementing thealgorithms in Java(tm)..sp.ti +2\- option for other choices of unification methods for colormaps.The nearest point in the 3 dimensional RGB color space may not bethe best choice..sp.ti +2\- define extension block in order to have frame lists..sp.ti +2\- define single-letter options and use.IR getopt (3)like most UNIX programs..SH AVAILABILITY.PPThis program is available via thearchive for comp.soruces.unix.B http://sources.isc.org/(and also via http://www.danbbs.dk/~dino/whirlgif/ )..SH AUTHORs.PPV3.00 \- 3.04 Hans Dinsen-Hansen <dino@danbbs.dk>.brBased onWhirlgif V2.02 by Kevin Kadow <kadokev@msg.net>.br.ti +5& Hans Dinsen-Hansen <dino@danbbs.dk>.brwhich is again based on 'txtmerge' written by:.brMark Podlipec <podlipec@BayNetworks.com> .brMan Page by Mintak Ng <mintak@hitak.com>.br.ti +5& Hans Dinsen-Hansen <dino@danbbs.dk>.sp.SH COPYRIGHT NOTICES.PPThe Graphics Interchange Format (c) is the Copyright property ofCompuserve Incorporated. GIF(sm) is a Service Mark property ofCompuserve Incorporated..spSee other Copyright notices in the accompanying texts.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -