[gimp/alxsa-cmyk-export-intent-api] plug-ins: Use image intent APIs
- From: Alx Sa <sawyeralex src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/alxsa-cmyk-export-intent-api] plug-ins: Use image intent APIs
- Date: Sun, 14 Aug 2022 01:49:57 +0000 (UTC)
commit e28c0766225cec7bb6d79691b36b64fce6760957
Author: Alx Sa <cmyk student gmail com>
Date: Sun Aug 14 01:49:56 2022 +0000
plug-ins: Use image intent APIs
This updates the JPEG and TIFF CMYK exports to use the image's
simulation rendering intent, rather than always
assuming relative colorimetric
plug-ins/file-jpeg/jpeg-save.c | 2 +-
plug-ins/file-tiff/file-tiff-save.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/plug-ins/file-jpeg/jpeg-save.c b/plug-ins/file-jpeg/jpeg-save.c
index 099a99729d..5e69e3fb34 100644
--- a/plug-ins/file-jpeg/jpeg-save.c
+++ b/plug-ins/file-jpeg/jpeg-save.c
@@ -358,7 +358,7 @@ save_image (GFile *file,
}
}
space = gimp_color_profile_get_space (profile,
- GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC,
+ gimp_image_get_simulation_intent (image),
error);
if (error && *error)
{
diff --git a/plug-ins/file-tiff/file-tiff-save.c b/plug-ins/file-tiff/file-tiff-save.c
index 100aaa100b..42a554d428 100644
--- a/plug-ins/file-tiff/file-tiff-save.c
+++ b/plug-ins/file-tiff/file-tiff-save.c
@@ -1111,6 +1111,8 @@ save_image (GFile *file,
if (profile)
space = gimp_color_profile_get_space (profile,
+ config_cmyk ?
+ gimp_image_get_simulation_intent (image) :
GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC,
&error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]