As well as the GUI client, Gif Animator also includes a command line tool which you can use to work with GIF animations. The tool, gifcmd.exe
, is located in the Gif Animator application folder.
Unless otherwise noted, whenever the command line tools expect a filename, this can either be a fully qualified path, or will be resolved against the current working directory.
Usage
GIFCMD [[source | /S:filename] [/E [/EF:[filename]] [/IF:format]]]
[mask1 [+mask2][+mask3]... [destination | [/O:filename]] [/GP]
[/AC:comment] [[/L] [/LC]]
[[/F:mask] | [/F:filename]] [/FD[index]:duration] [/FDM[index]:method] [/FC<index>:comment] [/FT[index]] [/FTC[index]:color]]
[/FX[index]:position] [/FY[index]:position]
[/I]
[/Y]
[/LOAD:filename] [/H | /?] [/QUIET] [/PAUSE] [/NOLOGO] [/VERSION]
Parameters
source | Specifies the source GIF file to load, only if the /E flag is set. Ignored if the /S switch is used |
mask1 [+mask2][+mask3]... | Specifies a list of files to load. These can either be fully qualified file names, or file masks. source and destination are included in this list if the /S and /O switches are used. |
destination | Specifies the output GIF file to save. Ignored if the /O switch is used. |
/S:filename | Specifies the source GIF file to load. |
/O:filename | Specifies the name of the output GIF to create. |
/E | Specifies that each frame in the source image should be exported. |
/EF:filename | Specifies the filename of the exported frames. Leave blank to derive the name from the source image filename. The replacement token can be used to include the index of the frame in the generated filename. |
/IF:format | Specifies or overrides a projects output image format. Valid formats are: BMP , GIF , JPG , PNG (default), TIF |
/GP | Specifies that a global palette will be generated for all frames. If this option is excluded, local palettes will be created instead. |
/AC | Specifies a comment for the animation |
/L | Specifies the animation should loop. |
/LC | Specifies the number of times the animation should loop. Default is zero, which means infinite. |
/<Findex>:filename | Specifies the source filename of a frame. Alternative for mask1 [+mask2][+mask3]... |
/FD[index]:duration | Specifies either the default frame duration, or if a frame index is specified, the duration of that frame |
/FDM[index]:method | Specifies either the default frame disposal method, or if a frame index is specified, the duration of that frame |
/FC<index>:comment | Specifies the comment for a frame |
/FT[index] | Specifies either that all frames are transparent, or if a frame index is specified, that a specific frame is transparent1 |
/FTC[index]:color | Specifies either the default transparency color for frames, or if a frame index is specified, the transparency color of that frame1 |
/FX[index]:location | Specifies either the default X co-ordinate for frames, or if a frame index is specified, the X co-ordinate of that frame |
/FY[index]:location | Specifies either the default Y co-ordinate for frames, or if a frame index is specified, the Y co-ordinate of that frame |
/SC | Removes all comments from the animation. Does not affect /AC or /FC switches. |
/Y | Suppresses prompting to confirm you want to overwrite an existing destination file. |
/I | Displays information on the specified source animation |
/LOAD:filename | Specifies an external file containing command line switches. Any argument above, with the exception of /LOAD , can be used in this file. Arguments can either be separated with spaces, newlines, or both. |
/H or /? | Display this message. |
/QUIET | Suppresses most standard output |
/PAUSE | Prompts the user to press a key before the program is exited |
/NOLOGO | Do not display the startup banner and copyright message. |
/VERSION | Display version information only. |
Notes
- When creating an animation, if a source image already has alpha channel based transparency, there is no need to use the
/FT
or/FTC
arguments - the existing transparency will be used where possible.