</listitem>\r
</varlistentry>\r
</variablelist>\r
+ <variablelist>\r
+ <varlistentry>\r
+ <term>\r
+ <guilabel>Thumbnail color management</guilabel>\r
+ </term>\r
+ <listitem>\r
+ <para>Where possible store thumbnails with an sRGB color profile.</para>\r
+ <note>\r
+ <para>Selecting this option will increase the time taken to generate thumbnails.</para>\r
+ <para>You probably will want to deselect the "Use EXIF thumbnails" option.</para>\r
+ </note>\r
+ </listitem>\r
+ </varlistentry>\r
+ </variablelist>\r
<variablelist>\r
<varlistentry>\r
<term>\r
options->thumbnails.spec_standard = TRUE;
options->thumbnails.use_xvpics = TRUE;
options->thumbnails.use_exif = FALSE;
+ options->thumbnails.use_color_management = FALSE;
options->thumbnails.use_ft_metadata = TRUE;
// options->thumbnails.use_ft_metadata_small = TRUE;
options->thumbnails.collection_preview = 20;
gboolean spec_standard;
guint quality;
gboolean use_exif;
+ gboolean use_color_management;
gboolean use_ft_metadata;
gint collection_preview;
// gboolean use_ft_metadata_small;
options->thumbnails.enable_caching = c_options->thumbnails.enable_caching;
options->thumbnails.cache_into_dirs = c_options->thumbnails.cache_into_dirs;
options->thumbnails.use_exif = c_options->thumbnails.use_exif;
+ options->thumbnails.use_color_management = c_options->thumbnails.use_color_management;
options->thumbnails.collection_preview = c_options->thumbnails.collection_preview;
options->thumbnails.use_ft_metadata = c_options->thumbnails.use_ft_metadata;
// options->thumbnails.use_ft_metadata_small = c_options->thumbnails.use_ft_metadata_small;
pref_checkbox_new_int(group, _("Use EXIF thumbnails when available (EXIF thumbnails may be outdated)"),
options->thumbnails.use_exif, &c_options->thumbnails.use_exif);
+ pref_checkbox_new_int(group, _("Thumbnail color management"),
+ options->thumbnails.use_color_management, &c_options->thumbnails.use_color_management);
+
spin = pref_spin_new_int(group, _("Collection preview:"), NULL,
1, 999, 1,
options->thumbnails.collection_preview, &c_options->thumbnails.collection_preview);
WRITE_NL(); WRITE_BOOL(*options, thumbnails.spec_standard);
WRITE_NL(); WRITE_UINT(*options, thumbnails.quality);
WRITE_NL(); WRITE_BOOL(*options, thumbnails.use_exif);
+ WRITE_NL(); WRITE_BOOL(*options, thumbnails.use_color_management);
WRITE_NL(); WRITE_BOOL(*options, thumbnails.use_ft_metadata);
WRITE_NL(); WRITE_INT(*options, thumbnails.collection_preview);
// WRITE_NL(); WRITE_BOOL(*options, thumbnails.use_ft_metadata_small);
if (READ_BOOL(*options, thumbnails.spec_standard)) continue;
if (READ_UINT_CLAMP(*options, thumbnails.quality, GDK_INTERP_NEAREST, GDK_INTERP_BILINEAR)) continue;
if (READ_BOOL(*options, thumbnails.use_exif)) continue;
+ if (READ_BOOL(*options, thumbnails.use_color_management)) continue;
if (READ_INT(*options, thumbnails.collection_preview)) continue;
if (READ_BOOL(*options, thumbnails.use_ft_metadata)) continue;
// if (READ_BOOL(*options, thumbnails.use_ft_metadata_small)) continue;
guint profile_len;
gint sw, sh;
+ if (!options->thumbnails.use_color_management)
+ {
+ return;
+ }
+
sw = gdk_pixbuf_get_width(pixbuf);
sh = gdk_pixbuf_get_height(pixbuf);