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 c4ee350f02
)
This commit is contained in:
@ -159,11 +159,8 @@ gimp_image_metadata_update_colorspace (GimpImage *image)
|
|||||||
|
|
||||||
if (metadata)
|
if (metadata)
|
||||||
{
|
{
|
||||||
/* This seems to be controversial, see the discussions in issue
|
/* See the discussions in issue #3532 and issue #301 */
|
||||||
* #3532 and issue #301. Enable the code below to test the
|
|
||||||
* proposed syncing of color profile and DCF info.
|
|
||||||
*/
|
|
||||||
#if 0
|
|
||||||
GimpColorProfile *profile = gimp_image_get_color_profile (image);
|
GimpColorProfile *profile = gimp_image_get_color_profile (image);
|
||||||
GimpMetadataColorspace space = GIMP_METADATA_COLORSPACE_UNSPECIFIED;
|
GimpMetadataColorspace space = GIMP_METADATA_COLORSPACE_UNSPECIFIED;
|
||||||
|
|
||||||
@ -183,6 +180,5 @@ gimp_image_metadata_update_colorspace (GimpImage *image)
|
|||||||
}
|
}
|
||||||
|
|
||||||
gimp_metadata_set_colorspace (metadata, space);
|
gimp_metadata_set_colorspace (metadata, space);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user