Global Config

You can save default settings in ~/.pprc/config.json so they apply to every run without needing CLI flags. CLI flags always take priority over config values.

On Windows, ~/.pprc/ resolves to %USERPROFILE%\.pprc\ (e.g. C:\Users\<you>\.pprc\).

Saving config

The easiest way to create a config is with --save-config:

pprc --clip 2.5 --dir-out ../DIR_NAME_inverted --save-config

This saves the specified options and exits without processing.

Manual editing

You can also create or edit ~/.pprc/config.json directly:

{
  "dirOut": "../DIR_NAME_inverted",
  "clip": 2.5
}

Configurable options

The following options can be set in the config file:

Last run config

After each run, PPRC saves the effective settings to ~/.pprc/last_run_config.json. If you liked the results, you can copy it to use as your config:

macOS / Linux:

cp ~/.pprc/last_run_config.json ~/.pprc/config.json

Windows:

copy %USERPROFILE%\.pprc\last_run_config.json %USERPROFILE%\.pprc\config.json

Config display

When settings are loaded from config, PPRC displays them at startup so you always know what's being applied. If a CLI flag overrides a config value, both are shown.