mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
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.
This commit is contained in:
parent
2ccc4be050
commit
1d640b3e47
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue