From 28b20af6b22b3119602604f0bb93c25cb06e4cec Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 21 Jun 2019 10:02:58 +0200 Subject: [PATCH] Issue #3532 - Wrong color profile on nikon taken photos, it's... ...always AdobeRGB! Enable the code in gimp_image_metadata_update_colorspace() which syncs the DCF information to the image's actual color profile, at least as good as it can, and otherwise sets it to "unspecified". Also fixes issue #301. (cherry picked from commit c4ee350f021beea5625f70c047fff88dd474b796) --- app/core/gimpimage-metadata.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/core/gimpimage-metadata.c b/app/core/gimpimage-metadata.c index 9141e1513a..ae0774f1bf 100644 --- a/app/core/gimpimage-metadata.c +++ b/app/core/gimpimage-metadata.c @@ -159,11 +159,8 @@ gimp_image_metadata_update_colorspace (GimpImage *image) if (metadata) { - /* This seems to be controversial, see the discussions in issue - * #3532 and issue #301. Enable the code below to test the - * proposed syncing of color profile and DCF info. - */ -#if 0 + /* See the discussions in issue #3532 and issue #301 */ + GimpColorProfile *profile = gimp_image_get_color_profile (image); GimpMetadataColorspace space = GIMP_METADATA_COLORSPACE_UNSPECIFIED; @@ -183,6 +180,5 @@ gimp_image_metadata_update_colorspace (GimpImage *image) } gimp_metadata_set_colorspace (metadata, space); -#endif } }