mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
don't write the sRGB chunk if the user asked for the gAMA chunk
svn path=/trunk/; revision=23136
This commit is contained in:
parent
80e10f9200
commit
ce4675a17d
|
@ -965,7 +965,7 @@ load_image (const gchar *filename,
|
|||
error_data.height = info->height;
|
||||
error_data.bpp = bpp;
|
||||
error_data.pixel_rgn = &pixel_rgn;
|
||||
|
||||
|
||||
png_set_error_fn (pp, &error_data, on_read_error, NULL);
|
||||
|
||||
for (pass = 0; pass < num_passes; pass++)
|
||||
|
@ -989,7 +989,7 @@ load_image (const gchar *filename,
|
|||
error_data.begin = begin;
|
||||
error_data.end = end;
|
||||
error_data.num = num;
|
||||
|
||||
|
||||
png_read_rows (pp, pixels, NULL, num);
|
||||
|
||||
gimp_pixel_rgn_set_rect (&pixel_rgn, pixel, 0, begin,
|
||||
|
@ -1423,7 +1423,7 @@ save_image (const gchar *filename,
|
|||
|
||||
g_free (profile_name);
|
||||
}
|
||||
else
|
||||
else if (! pngvals.gama)
|
||||
{
|
||||
png_set_sRGB (pp, info, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue