How can I run the CLI tool “tpai.exe” with custom settings?
I want to be able to configure things like values of “suppress noise”, “remove blur” or “fix compression”. However when I do a “tpai.exe --help” I can’t see any parameter to configure this.
Is there any configuration file the CLI tool uses?
This is the command output when I launch the --help:
tpai.exe --help
QML debugging is enabled. Only use this in a safe environment.
Options:
--output, -o: Output folder to save images to. If it doesn't exist the program will attempt to create it.
--overwrite: Allow overwriting of files. THIS IS DESTRUCTIVE.
--recursive, -r: If given a folder path, it will recurse into subdirectories instead of just grabbing top level files.
File Format Options:
--format, -f: Set the output format. Accepts jpg, jpeg, png, tif, tiff, dng, or preserve. Default: preserve
Note: Preserve will attempt to preserve the exact input extension, but RAW files will still be converted to DNG.
Format Specific Options:
--quality, -q: JPEG quality for output. Must be between 0 and 100. Default: 95
--compression, -c: PNG compression amount. Must be between 0 and 10. Default: 2
--bit-depth, -d: TIFF bit depth. Must be either 8 or 16. Default: 16
--tiff-compression: -tc: TIFF compression format. Must be "none", "lzw", or "zip".
Note: lzw is not allowed on 16-bit output and will be converted to zip.
Debug Options:
--showSettings: Shows the Autopilot settings for images before they are processed
--skipProcessing: Skips processing the image (e.g., if you just want to know the settings)
Return values:
0 - Success
1 - Partial Success (e.g., some files failed)
-1 (255) - No valid files passed.
-2 (254) - Invalid log token. Open the app normally to login.
-3 (253) - An invalid argument was found.