From dbb89bce572fa54bea7189e70b1b489567eab08a Mon Sep 17 00:00:00 2001 From: CoCo Date: Wed, 4 Mar 2026 21:49:35 +0000 Subject: [PATCH] fix: add missing I;16B/I;16L PIL modes to bit depth detection Co-Authored-By: Claude Opus 4.6 --- modules/image_loader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/image_loader.py b/modules/image_loader.py index 8d24db0..e729d93 100644 --- a/modules/image_loader.py +++ b/modules/image_loader.py @@ -101,7 +101,9 @@ class ImageLoader: """ mode_to_bit_depth = { "1": 1, "L": 8, "P": 8, "RGB": 8, "RGBA": 8, - "I;16": 16, "I": 32, "F": 32 + "LA": 8, "PA": 8, + "I;16": 16, "I;16B": 16, "I;16L": 16, + "I": 32, "F": 32 } if image is None: