From a79aac687bf05280c54630411f570b05d64c74ce Mon Sep 17 00:00:00 2001 From: Jacob Boerema Date: Thu, 4 Mar 2021 12:42:59 -0500 Subject: [PATCH] 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);