Command-Line Options

Explanation

 * Chevrons indicate parameters you can change.
 * Square brackets mean the parameter is not mandatory.
 * The pipe symbol  indicates a choice of one or the other.
 * The dash symbol  denotes a range of possible values from one to the other.

Usage:
 * Start File Browser inside directory.
 * Start Image Editor with file.
 * Convert files in batch with default parameters if no specified.
 * Start Image Editor with file.
 * Convert files in batch with default parameters if no specified.
 * Convert files in batch with default parameters if no specified.


 * Do not open the Windows console. This option is available in Windows only. If you pass parameters to the RawTherapee executable it spawns a console window so that you can see the verbose output of your processing. Normally Windows closes this console directly after RawTherapee is terminated. To let you see the output we added a prompt which waits for you to hit a key before closing the console. By specifying  no console will be opened and therefore no key press is needed. Useful if you want to invoke rawtherapee.exe in batch, e.g. from a PowerShell script.
 * Do not open the Windows console. This option is available in Windows only. If you pass parameters to the RawTherapee executable it spawns a console window so that you can see the verbose output of your processing. Normally Windows closes this console directly after RawTherapee is terminated. To let you see the output we added a prompt which waits for you to hit a key before closing the console. By specifying  no console will be opened and therefore no key press is needed. Useful if you want to invoke rawtherapee.exe in batch, e.g. from a PowerShell script.

Other options used with  (  must be the last option):
 * Select output file or directory.
 * Select output file or directory and copy PP3 file into it.
 * Include the PP3 file next to the input file (with the same name) to build the image parameters, e.g. for photo.raw there should be a photo.raw.pp3 file in the same directory. If the file does not exist, internal default (neutral) values (not those in "Default.pp3") will be used.
 * Like  but skip if the PP3 file does not exist.
 * Specify PP3 file to be used for all conversions. You can specify as many  options as you like (see description below).
 * Use the default raw or non-raw PP3 file as set in " Preferences > Image Processing >  Default Processing Profile"
 * Specify output to be JPEG (on by default). Optionally add compression 1-100 (default value: 92).
 * Specify the JPEG chroma subsampling parameter, where:
 * 1 = Best compression: 2x2, 1x1, 1x1 (4:2:0)
 * Chroma halved vertically and horizontally.
 * 2 = Balanced:        2x1, 1x1, 1x1 (4:2:2)
 * Chroma halved horizontally.
 * 3 = Best quality:    1x1, 1x1, 1x1 (4:4:4)
 * No chroma subsampling.
 * Specify bit depth per channel (only applies to TIFF and PNG output).
 * Specify output to be TIFF (16-bit if  is not set).
 * Uncompressed by default, or ZIP compression with 'z'.
 * Specify output to be compressed PNG (16-bit if  is not set).
 * Overwrite output if present.
 * 2 = Balanced:        2x1, 1x1, 1x1 (4:2:2)
 * Chroma halved horizontally.
 * 3 = Best quality:    1x1, 1x1, 1x1 (4:4:4)
 * No chroma subsampling.
 * Specify bit depth per channel (only applies to TIFF and PNG output).
 * Specify output to be TIFF (16-bit if  is not set).
 * Uncompressed by default, or ZIP compression with 'z'.
 * Specify output to be compressed PNG (16-bit if  is not set).
 * Overwrite output if present.
 * Specify output to be compressed PNG (16-bit if  is not set).
 * Overwrite output if present.
 * Overwrite output if present.
 * Overwrite output if present.

Your PP3 files can be incomplete, RawTherapee will set the values as follows:
 * 1) A new profile is created using internal default (neutral) values (hard-coded into RawTherapee),
 * 2) then overridden by those found in the default raw or non-raw PP3 file (if   has been set),
 * 3) then overridden by those found in the PP3 files provided by , each one overriding the previous values,
 * 4) then overridden by the sidecar file if   is set and if the file exists; the time where the sidecar file is used depends on the position of the   switch in the command line relative to the   parameters, e.g.

Redirect Output
To redirect RawTherapee's output to a text file, you have to start it from a console and append the redirection code as follows:


 * Windows (cmd.exe)


 * Linux

Example 1
In Linux, process a single raw which resides in /tmp and is called "photo.raw", use its sidecar file "photo.raw.pp3" during conversion, save it in the same directory as "foo.tif", and overwrite the file "foo.tif" if it exists:

Example 2
In the next example, we'll assume that you want to quickly process all your raw photos from the /tmp/jane01 directory to a web sub-directory by using the default profile as a basis, using the sidecar profile if it exist, but with removing some Exif tags (e.g. the camera's serial number) and adding some IPTC tags (e.g. your usual copyright parameters), plus resize and sharpen the image for the web (spread over multiple lines for clarity):

The processing profile will be built as follows:
 * 1) A new profile is created using internal default values (hard-coded into RawTherapee),
 * 2) then overridden by those from the default raw profile ,
 * 3) then overridden by those found in iptc.pp3,
 * 4) then overridden by those found in the sidecar file  if it exists, so you can force some IPTC tags even if already set by iptc.pp3,
 * 5) then overridden by those found in exif.pp3, so you can force the profile to erase some tags,
 * 6) then overridden by those found in web.pp3, to resize and sharpen the image, and make sure that the output colorspace is sRGB.

As you can see, the position of the  switch tells when to load the sidecar profile relative to the other   parameters. That is not the case for the  switch.

Example 3
In the third example, we will see how long it takes to process every raw file in a directory, assuming that each raw photo has a corresponding processing profile, and discard each output file: