From 3f06aca3d414081c33a94fb01763fafb3b1bec30 Mon Sep 17 00:00:00 2001 From: jdc Date: Tue, 2 Dec 2014 16:14:12 +0100 Subject: [PATCH] Preview does not match output when using BW with a* and b* toning with chromaticity -100 - issue2567 --- rtengine/simpleprocess.cc | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/rtengine/simpleprocess.cc b/rtengine/simpleprocess.cc index f8e8e7c9b..141f22014 100644 --- a/rtengine/simpleprocess.cc +++ b/rtengine/simpleprocess.cc @@ -1026,19 +1026,25 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p // gamma come from the selected profile, otherwise it comes from "Free gamma" tool // readyImg = ipf.lab2rgb16 (labView, cx, cy, cw, ch, params.icm.output, params.blackwhite.enabled); - bool bwonly = params.blackwhite.enabled && !params.colorToning.enabled ; + bool bwonly = params.blackwhite.enabled && !params.colorToning.enabled ; + if(autili || butili ) bwonly = false; readyImg = ipf.lab2rgb16 (labView, cx, cy, cw, ch, params.icm.output, bwonly); - if (settings->verbose) printf("Output profile: \"%s\"\n", params.icm.output.c_str()); + if (settings->verbose) printf("Output profile_: \"%s\"\n", params.icm.output.c_str()); } delete labView; labView = NULL; - if(params.blackwhite.enabled && !params.colorToning.enabled ) {//force BW r=g=b - for (int ccw=0;ccwr(cch,ccw)=readyImg->g(cch,ccw); - readyImg->b(cch,ccw)=readyImg->g(cch,ccw); + + + if(!autili && !butili ) { + if(params.blackwhite.enabled && !params.colorToning.enabled ) {//force BW r=g=b + if (settings->verbose) printf("Force BW\n"); + for (int ccw=0;ccwr(cch,ccw)=readyImg->g(cch,ccw); + readyImg->b(cch,ccw)=readyImg->g(cch,ccw); + } } } }