Issue #701 - Add the ability to embed the GIMP built-in sRGB profile...

...upon exporting an image

Step 1: make it configurable just like "Export EXIF" etc.

app, libgimp: add "export-color-profile" config option

Add it to the preferences dialog, and pass it on to plug-ins in the
GPConfig message. Add gimp_export_color_profile() to libgimp.

Nothing uses this yet.
This commit is contained in:
Michael Natterer
2018-06-18 02:19:41 +02:00
parent e0f46d1dc9
commit 8c9c091021
10 changed files with 70 additions and 19 deletions

View File

@ -500,6 +500,10 @@ _gp_config_read (GIOChannel *channel,
(guint8 *) &config->use_opencl, 1,
user_data))
goto cleanup;
if (! _gimp_wire_read_int8 (channel,
(guint8 *) &config->export_profile, 1,
user_data))
goto cleanup;
if (! _gimp_wire_read_int8 (channel,
(guint8 *) &config->export_exif, 1,
user_data))
@ -584,6 +588,10 @@ _gp_config_write (GIOChannel *channel,
(const guint8 *) &config->use_opencl, 1,
user_data))
return;
if (! _gimp_wire_write_int8 (channel,
(const guint8 *) &config->export_profile, 1,
user_data))
return;
if (! _gimp_wire_write_int8 (channel,
(const guint8 *) &config->export_exif, 1,
user_data))

View File

@ -26,7 +26,7 @@ G_BEGIN_DECLS
/* Increment every time the protocol changes
*/
#define GIMP_PROTOCOL_VERSION 0x0100
#define GIMP_PROTOCOL_VERSION 0x0101
enum
@ -69,6 +69,7 @@ struct _GPConfig
gint8 show_help_button;
gint8 use_cpu_accel;
gint8 use_opencl;
gint8 export_profile;
gint8 export_exif;
gint8 export_xmp;
gint8 export_iptc;