YOUR ACCOUNT

The command-line renderer allows you to batch-render any number of saved filter presets. It is available as a separate executable file. Under Microsoft Windows, the file name is FFXCmdRenderer-x64.exe.Under Mac OS X, the file name is FFCmdRenderer. The only parameter the command-line renderer accepts is the path to an .xml file which describes rendering jobs.

A different way to process multiple images at once is to load an image sequence into an artboard. For details, see Artboard Properties.

Using the Command-Line Renderer under Windows

  1. Prepare the .xml file containing the tasks to process (scroll down for an example). The example file is also available in the C:\Program Files\Filter Forge 12\Resources\System folder as batchsample.xml.
  2. Open the Command Prompt (Start > Windows System > Command Prompt).
  3. Type cd %ProgramFiles%\Filter Forge 12\Bin\ and hit Enter.
  4. Type FFXCmdRenderer-x64.exe batch.xml, where batch.xml is the name or path to the .xml file you prepared earlier (you can use any other file name or path).

Using the Command-Line Renderer under Mac OS X

  1. Prepare the .xml file containing the tasks to process (scroll down for an example). The example file is also available in the /Applications/Filter Forge 12/Resources/System directory as batchsample.xml.
  2. Launch Terminal (Applications > Utilities > Terminal.app).
  3. Type cd /Applications/Filter\ Forge\ 11/ and hit Enter.
  4. Type ./FFCmdRenderer batch.xml, where batch.xml is the name or path to the .xml file you prepared earlier (you can use any other file name or path).

Error Handling and Logging

All errors that occurred while rendering are written down to the log file and shown in the console. The log file is named FFX CmdRenderer.log and located in the system temporary folder (under Windows 7 and newer, it is usually C:\Users\User Name\AppData\Local\Temp).Terminal window. The log file is named FFX CmdRenderer.log and located in the system temporary folder (under Mac OS, it is usually /tmp/).

When the renderer encounters a non-critical error, such as typos in the filter name or impossible bit depth values, it skips the invalid task and advances to the next task in the queue. Critical errors, such as invalid xml scheme, cause the renderer to abort all operations.

Xml File Example

<?xml version="1.0" encoding="utf-8" ?> <Tasks> <Task> <Image value="" width="300" height="400" /> <Selection value="" /> <Result path="D:\Images\Wood.bmp" /> <Filter value="C:\Users\User Name\AppData\Filter Forge 12\My Filters\myfilter-1.ffxml" /> <Preset value="0" /> </Task> <Task> <Image value="" width="300" height="400" /> <Selection value="" /> <Result path="D:\Images\WetStone.jpg" format="JPG" /> <Filter value="C:\Users\User Name\AppData\Filter Forge 12\My Filters\myfilter-4.ffxml" /> <Preset value="0" /> </Task> <Task> <Image value="D:\1.jpg" /> <Selection value="" /> <Result path="D:\Images\ComicBook.bmp" format="BMP"> <Options> <BitDepth value="32" /> <FlipRowOrder value="false" /> </Options> </Result> <RenderingOptions> <Dither value="false" /> <AntiAliasBitmapComponentSources value="true" /> </RenderingOptions> <Filter value="C:\Users\User Name\AppData\Filter Forge 12\My Filters\myfilter-2.ffxml" /> <Preset value="0" /> </Task> <GlobalSettings> <RenderingOptions> <UseMultithreading value="true" /> <Dither value="true" /> <Progressive value="true" /> <OptimizeBlurs value="true" /> <AntiAliasBitmapComponentSources value="false" /> <Jitter value="0" /> <TemporaryFilesLocation value="" /> <RAMUsageLimit value="60" /> <NormalMapFlipY value="false" /> </RenderingOptions> <BitmapFormatOptions> <DefaultFormat value="JPG" /> <BMP> <BitDepth value="32" /> <FlipRowOrder value="false" /> </BMP> <JPG> <Quality value="98" /> <FullPrecision value="true" /> </JPG> <TIF> <BitDepth value="8" /> <FloatFormat value="false" /> <IncludeTransparency value="true" /> <ImageCompression value="LZW" /> </TIF> <TGA> <BitDepth value="32" /> <IncludeTransparency value="true" /> <FlipRowOrder value="false" /> </TGA> <PNG> <BitDepth value="16" /> <IncludeTransparency value="true" /> <ImageCompression value="BEST" /> </PNG> <EXR> <BitDepth value="32" /> <IncludeTransparency value="true" /> <ImageCompression value="PIZ" /> <FlipRowOrder value="false" /> </EXR> <PFM /> </BitmapFormatOptions> </GlobalSettings> </Tasks>
<?xml version="1.0" encoding="utf-8"?> <Tasks> <Task> <Image value="" width="300" height="400" /> <Selection value="" /> <Result path="~/Documents/Wood.bmp" /> <Filter value="~/Library/Application Support/Filter Forge 12/My Filters/myfilter-1.ffxml" /> <Preset value="0" /> </Task> <Task> <Image value="" width="300" height="400" /> <Selection value="" /> <Result path="~/Documents/WetStone.jpg" format="JPG" /> <Filter value="~/Library/Application Support/Filter Forge 12/My Filters/myfilter-4.ffxml" /> <Preset value="0" /> </Task> <Task> <Image value="~/Documents/1.jpg" /> <Selection value="" /> <Result path="~/Documents/ComicBook.bmp" format="BMP"> <Options> <BitDepth value="32" /> <FlipRowOrder value="false" /> </Options> </Result> <RenderingOptions> <Dither value="false" /> <AntiAliasBitmapComponentSources value="true" /> </RenderingOptions> <Filter value="~/Library/Application Support/Filter Forge 12/My Filters/myfilter-2.ffxml" /> <Preset value="0" /> </Task> <GlobalSettings> <RenderingOptions> <UseMultithreading value="true" /> <Dither value="true" /> <Progressive value="true" /> <OptimizeBlurs value="true" /> <AntiAliasBitmapComponentSources value="false" /> <Jitter value="0" /> <TemporaryFilesLocation value="" /> <RAMUsageLimit value="60" /> <NormalMapFlipY value="false" /> </RenderingOptions> <BitmapFormatOptions> <DefaultFormat value="JPG" /> <BMP> <BitDepth value="32" /> <FlipRowOrder value="false" /> </BMP> <JPG> <Quality value="98" /> <FullPrecision value="true" /> </JPG> <TIF> <BitDepth value="8" /> <FloatFormat value="false" /> <IncludeTransparency value="true" /> <ImageCompression value="LZW" /> </TIF> <TGA> <BitDepth value="32" /> <IncludeTransparency value="true" /> <FlipRowOrder value="false" /> </TGA> <PNG> <BitDepth value="16" /> <IncludeTransparency value="true" /> <ImageCompression value="BEST" /> </PNG> <EXR> <BitDepth value="32" /> <IncludeTransparency value="true" /> <ImageCompression value="PIZ" /> <FlipRowOrder value="false" /> </EXR> <PFM /> </BitmapFormatOptions> </GlobalSettings> </Tasks>

Xml File Hierarchy

The .xml file has three hierarchy levels of nested sections. Some of them are mandatory, and some are optional.

<Tasks>
    <Task>
        <Options></Options>
        <RenderingOptions></RenderingOptions>
    </Task>
    <GlobalSettings></GlobalSettings>
</Tasks>

Xml File Contents

The .xml file describes rendering jobs. A single job renders a single filter preset and saves the result into an image file. The jobs are processed in the same order as they are listed in the .xml file. A single rendering job is enclosed in <Task></Task> tags. It has five mandatory tags:

 

Image Format Options

The <Result> tag can have an additional <Options> section which describes parameters for the image format specified by the format attribute in the <Result> tag. If the <Options> section is omitted, the format parameters are read from the <GlobalSettings> section, and if <GlobalSettings> is omitted, – from the C:\Documents and Settings\User Name\Application Data\Filter Forge 8\FileFormatOptions.xml file.~/Library/Application Support/Filter Forge 8/FileFormatOptions.xml file. If the format attribute itself is missing from the <Result> tag, the <Options> section is ignored.

These are possible tags for the <Options> section. The tags in this section should correspond to the format specified in the <Result> tag.

BMP format options JPG format options TIF format options TGA format options PNG format options EXR format options PFM format options

Rendering Options

<Task> can have an optional <RenderingOptions> section which describes rendering parameters for the output file. If the <RenderingOptions> section is omitted, the rendering parameters are read from the <GlobalSettings> section. If the <GlobalSettings> section is omitted, Filter Forge default parameters are used instead.

These are possible tags for the <RenderingOptions> section. The tags in this section correspond to the Rendering tab in the Options dialog in the Filter Forge GUI.

Global Settings

The top <Tasks> section can have an optional <GlobalSettings> section which describes global rendering and image format parameters for the whole file. If the <GlobalSettings> section is omitted, Filter Forge default parameters are used instead.

The tags in the <GlobalSettings> section are the same as those in the <RenderingOptions> and <Options> sections above.