Commit c5fae74a authored by Jehan's avatar Jehan

Issue #3193: Wrong colors after exporting 8bpc RGB png from 32f...

... linear XCF.
When choosing a specific pixel format (other than "Automatic"), we
always export as non-linear. Therefore if we were going to save a linear
profile, make sure we also convert it to sRGB too.
parent 8594275b
......@@ -1744,6 +1744,14 @@ save_image (const gchar *filename,
bit_depth = 16;
break;
}
if (linear && profile)
{
GimpColorProfile *saved_profile;
saved_profile = gimp_color_profile_new_srgb_trc_from_color_profile (profile);
g_object_unref (profile);
profile = saved_profile;
}
}
bpp = babl_format_get_bytes_per_pixel (file_format);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment