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

This commit is contained in:
Jacob Boerema 2021-03-04 12:42:59 -05:00
parent a6d4ef8b94
commit a79aac687b
1 changed files with 3 additions and 6 deletions

View File

@ -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);