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



commit a2a12f46562cca78a7b66b5c41922befc1df36f1
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.
    
    (cherry picked from commit a79aac687bf05280c54630411f570b05d64c74ce)
    
    # Conflicts:
    #       plug-ins/file-tiff/file-tiff-load.c

 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 b61d66ec8d..e531d4996d 100644
--- a/plug-ins/file-tiff/file-tiff-load.c
+++ b/plug-ins/file-tiff/file-tiff-load.c
@@ -573,12 +573,9 @@ load_image (GFile        *file,
           break;
 
         default:
-          if (profile_linear)
-            image_precision = GIMP_PRECISION_U16_LINEAR;
-          else
-            image_precision = GIMP_PRECISION_U16_GAMMA;
-
-          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]