From f320de08ebaf1e649bcd784cd5af9760e0d2bf2f Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Thu, 12 Apr 2018 09:44:51 +0200 Subject: [PATCH] rawimagesource: force conversion through prophoto if the input ICC profile is not a "generic" one --- rtengine/rawimagesource.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/rawimagesource.cc b/rtengine/rawimagesource.cc index 84965d519..b7ec93e80 100644 --- a/rtengine/rawimagesource.cc +++ b/rtengine/rawimagesource.cc @@ -4013,7 +4013,7 @@ void RawImageSource::colorSpaceConversion_ (Imagefloat* im, const ColorManagemen bool separate_pcs_lab_highlights = false; // check if the working space is fully contained in prophoto - if (!working_space_is_prophoto) { + if (!working_space_is_prophoto && camera_icc_type == CAMERA_ICC_TYPE_GENERIC) { TMatrix toxyz = ICCStore::getInstance()->workingSpaceMatrix(cmp.working); TMatrix torgb = ICCStore::getInstance()->workingSpaceInverseMatrix("ProPhoto"); float rgb[3] = {0.f, 0.f, 0.f};