Several functions of the command line client require either a source file to load, an output file to write, and possibly some other files to load and process depending on the task you are performing. These files can either be explicitly specified with switches, or inferred based on the context of the whole command line.

Specifying the name of an animation to load

If you use the /E switch to extract frames from an existing animation, the command line client uses the first file from the list as the source animation to load, unless the /S switch is specified.

Implicit:

GIFCMD animation.gif /E

In this example, the file animation.gif will be loaded and it's frames extracted.

Explicit:

GIFCMD animation.gif /S animation2.gif /E

In this example, the file specified via the /S switch is used, and so the file animation2.gif will be loaded and it's frames extracted.

Specifying the name of the animation to save

If more than one file is present on the command line (adjusted for if an implicit load file has already been set) then the last file in the list will be used as the output animation filename, unless the /O switch is specified.

Implicit:

GIFCMD file1.png file2.png file3.png animation.gif

In this example, a new animation will be created, to which the files file1.png, file2.png and file3.png will be loaded as frames. After all processing is completed the animation is saved into the file animation.gif.

Explicit:

GIFCMD file1.png file2.png file3.png animation.gif /O animation2.gif

In this example, a new animation will be created, to which the files file1.png, file2.png, file3.png and animation.gif will be loaded as frames. After all processing is completed the animation is saved into the file animation2.gif.

Combining the two

You can use switches to both load an existing animation, modify it, and then save it, but in this scenario you would need to explicitly set the /S switch as it normally wouldn't make sense to include an extract frames command.

Example:

GIFCMD /S animation.gif file2.png file3.png /O

In this example, file animation.gif will be opened as an existing animation, then file2.png and file3.png appended to it, and then saved as the original animation.gif. The /O flag can have the filename omitted if and only if the /S argument is provided.

Specifying an external file to load commands from

The /LOAD argument can be used to store command arguments in an external file and then load these into the command line client. If the only argument in the initial command line is a load, and the external file has the .txt extension, then you can omit the /LOAD argument and just pass the filename.

Example:

GIFCMD create1.txt
© 2013-2023 Cyotek Ltd. All Rights Reserved.
Documentation version 0.8 (buildref #67.15583), last modified 2023-03-05. Generated 2023-04-29 14:25 using Cyotek HelpWrite Professional version 6.19.1