[gimp] plug-ins, TIFF: Don't try to load image with bit depth we can't handle.



commit a79aac687bf05280c54630411f570b05d64c74ce
Author: Jacob Boerema <jgboerema gmail com>
Date:   Thu Mar 4 12:42:59 2021 -0500

    plug-ins, TIFF: Don't try to load image with bit depth we can't handle.

 plug-ins/file-tiff/file-tiff-load.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/plug-ins/file-tiff/file-tiff-load.c b/plug-ins/file-tiff/file-tiff-load.c
index a4d3dfd0e7..7429436ee1 100644
--- a/plug-ins/file-tiff/file-tiff-load.c
+++ b/plug-ins/file-tiff/file-tiff-load.c
@@ -561,12 +561,9 @@ load_image (GFile        *file,
           break;
 
         default:
-          if (profile_linear)
-            image_precision = GIMP_PRECISION_U16_LINEAR;
-          else
-            image_precision = GIMP_PRECISION_U16_NON_LINEAR;
-
-          type = babl_type ("u16");
+          g_message (_("Unsupported bit depth: %d for page %d."),
+                     bps, li+1);
+          continue;
         }
 
       g_printerr ("bps: %d\n", bps);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]