[gimp] Issue #3264 - Wrong colors from opening and exporting non-sRGB tiffs...
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Issue #3264 - Wrong colors from opening and exporting non-sRGB tiffs...
- Date: Wed, 12 Jun 2019 08:57:14 +0000 (UTC)
commit 5d95040a9d764db9b1f0d75fda705e26b8702bdc
Author: Michael Natterer <mitch gimp org>
Date: Wed Jun 12 10:31:13 2019 +0200
Issue #3264 - Wrong colors from opening and exporting non-sRGB tiffs...
...and pngs
Fix yesterday's fix and pippin's fix to not move lines around that
should be together (never move around code between testing and
pushing)...
plug-ins/file-tiff/file-tiff-load.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/file-tiff/file-tiff-load.c b/plug-ins/file-tiff/file-tiff-load.c
index 29fe73d4c3..d81fef0320 100644
--- a/plug-ins/file-tiff/file-tiff-load.c
+++ b/plug-ins/file-tiff/file-tiff-load.c
@@ -973,8 +973,6 @@ load_image (GFile *file,
g_free (name);
}
- channel[0].buffer = gimp_drawable_get_buffer (layer);
-
if (! base_format && image_type == GIMP_INDEXED)
{
/* can't create the palette format here, need to get it from
@@ -986,10 +984,11 @@ load_image (GFile *file,
{
base_format =
babl_format_with_space (babl_format_get_encoding (base_format),
- gegl_buffer_get_format (channel[0].buffer));
+ gimp_drawable_get_format (layer));
}
channel[0].ID = layer;
+ channel[0].buffer = gimp_drawable_get_buffer (layer);
channel[0].format = base_format;
if (extra > 0 && ! worst_case)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]