From 1d640b3e474adbbe7d5ec42214ae67fa1686896c Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Fri, 25 Apr 2025 21:02:18 +0000 Subject: [PATCH] plug-ins: Make sure CMYK profile is exported for TIFF Unlike PSD and JPEG, our TIFF plug-in's color profile export code only ran if the user had enabled the Save Color Profile option. The CMYK option alone did not trigger the profile code, so it was possible to accidently export a CMYK TIFF without including its color profile. Since this is rarely desired, the CMYK boolean was added to the profile export conditional code, so that it runs if either option is selected. --- plug-ins/file-tiff/file-tiff-export.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plug-ins/file-tiff/file-tiff-export.c b/plug-ins/file-tiff/file-tiff-export.c index 2841e3f510..6d65a470c3 100644 --- a/plug-ins/file-tiff/file-tiff-export.c +++ b/plug-ins/file-tiff/file-tiff-export.c @@ -669,7 +669,7 @@ save_layer (TIFF *tif, } #ifdef TIFFTAG_ICCPROFILE - if (config_save_profile) + if (config_save_profile || config_cmyk) { const guint8 *icc_data = NULL; gsize icc_length; @@ -1089,7 +1089,7 @@ export_image (GFile *file, goto out; } - if (config_save_profile) + if (config_save_profile || config_cmyk) { GimpColorProfile *profile; GError *error = NULL;