Beep6581 / RawTherapee

A powerful cross-platform raw photo processing program
https://rawtherapee.com
GNU General Public License v3.0
2.75k stars 313 forks source link

rawtherapee-cli: batch mode conversion of raw image to jpg skips auto level #5715

Open d-e-e-p opened 4 years ago

d-e-e-p commented 4 years ago

When rawtherapee-cli processes raw file inputs, there seems to be no way to get it to activate some operations like auto-level. Only workaround to order operations seems to be having temporary non-raw files...Eg,

 #** auto level doesn't work**
rawtherapee-cli -q -Y -o img.jpg -p raw.pp3  -p level.pp3  -c img.dng
Settings directory (rtdir) = /home/user/.config/RawTherapee
RawTherapee, version 5.8-394-g22eee97, command line.
Input: dng/img0000000.dng Output: 8-bit integer.
  Merging procparams #0
  Merging procparams #1

#** auto level works!**
rawtherapee-cli -q -Y -o tmp.jpg -p raw.pp3 -p level.pp3  -c img.dng
rawtherapee-cli -q -Y -o img.jpg -p raw.pp3  -p level.pp3  -c tmp.dng

level.pp3 and raw.pp3 profiles looks like

[Version]
AppVersion=5.8-394-g22eee97
Version=347

[Exposure]
Auto=true
Clip=0.02
[Version]
AppVersion=5.8-394-g22eee97
Version=347

[RAW Bayer]
Method=amaze
Border=0
heckflosse commented 4 years ago

Works fine here.

test.pp3

[Version]
AppVersion=5.8-411-ga70691caf
Version=347

[Exposure]
Auto=true
Clip=0.02

test2.pp3

[Version]
AppVersion=5.8-411-ga70691caf
Version=347

[RAW Bayer]
Method=amaze
Border=0
rawtherapee-cli.exe -q -Y -o /z/H2/test_images/amsterdam2.jpg -p /z/H2/test_images/test.pp3 -p /z/h2/test_images/test2.pp3 -c /z/h2/test_images/amsterdam.pef
RawTherapee, version 5.8-411-ga70691caf, command line.
Output is 8-bit integer.
Processing: Z:/h2/test_images/amsterdam.pef
  Merging procparams #0
  Merging procparams #1

Resulting jpg has auto levels applied. Can you provide a raw file to reproduce?

d-e-e-p commented 4 years ago

testcase attached. i'm trying to clip off the left-hand-side of histogram using the auto levels command...

Screen Shot 2020-04-17 at 1 39 34 PM Screen Shot 2020-04-17 at 1 39 59 PM

testcase.tar.gz