From ed015d018428eef6c782456a9a7bde08ece8b22b Mon Sep 17 00:00:00 2001 From: Oliver Duis Date: Tue, 26 Jul 2011 19:04:27 +0200 Subject: [PATCH] Fixed thumbnails too dark when using highlight recovery see issue 861 --- rtengine/rtthumbnail.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rtengine/rtthumbnail.cc b/rtengine/rtthumbnail.cc index f05b1a23c..a05748e2f 100644 --- a/rtengine/rtthumbnail.cc +++ b/rtengine/rtthumbnail.cc @@ -598,17 +598,18 @@ IImage8* Thumbnail::processImage (const procparams::ProcParams& params, int rhei double mul_lum = 0.299*rm + 0.587*gm + 0.114*bm; double logDefGain = log(defGain) / log(2.0); int rmi, gmi, bmi; - if (!isRaw || !params.hlrecovery.enabled) { + // Since HL recovery is not rendered in thumbs +// if (!isRaw || !params.hlrecovery.enabled) { logDefGain = 0.0; rmi = 1024.0 * rm * defGain / mul_lum; gmi = 1024.0 * gm * defGain / mul_lum; bmi = 1024.0 * bm * defGain / mul_lum; - } +/* } else { rmi = 1024.0 * rm / mul_lum; gmi = 1024.0 * gm / mul_lum; bmi = 1024.0 * bm / mul_lum; - } + }*/ // The RAW exposure is not reflected since it's done in preprocessing. If we only have e.g. the chached thumb, // that is already preprocessed. So we simulate the effect here roughly my modifying the exposure accordingly