How to use film simulation HaldCLUT from the CLI

I’m using the RawTherapee CLI and am very interested is using the film simulations - but I can’t seem to see anywhere on how to use the CLI with the haldcluts. Any tips much appreciated!

I’d guess you need to create a profile in the GUI that uses the profile you want.

I’ve never used the CLI but, as has been said briefly, the answer may lie in a PP3 file created by some means, not the just the GUI.

Example line:

rawtherapee-cli -o output.jpg -p film_simulation.pp3 -s input.jpg

Here’s a PP3 section that might work for you using a text editor:

[Version]
AppVersion=5.9
Version=343

[ColorToning]
Enabled=true
Method=0
ClutFilename=Simulation file_name.png
ClutStrength=1.000
ClutNeutral=false

Good luck, I may not be be able to help with detailed CLI questions.

Many thanks - I jumped in and enabled it in the app then looked at the pp3 file it generated as you said - all was in there.

1 Like

I use CLI to process using .pp3 with a HaldCLUT, but I recall I need to mangle the .pp3 so that it uses an absolute path to the profile. Unfortunately, GUI only writes it such that the path in .pp3 is relative to the path in GUI settings, but both CLI and GUI can read an absolute path, and CLI cannot read a relative path because I suppose it doesn’t care about GUI settings.

1 Like

Great tip thanks