Skip to content

Commit c1cb930

Browse files
committed
Added more modes
1 parent e7a0ef4 commit c1cb930

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/PIL/Image.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,28 @@ def _conv_type_shape(im):
248248
return shape, m.typestr
249249

250250

251-
MODES = ["1", "CMYK", "F", "HSV", "I", "L", "LAB", "P", "RGB", "RGBA", "RGBX", "YCbCr"]
251+
MODES = [
252+
"1",
253+
"CMYK",
254+
"F",
255+
"HSV",
256+
"I",
257+
"I;16",
258+
"I;16B",
259+
"I;16L",
260+
"I;16N",
261+
"L",
262+
"LA",
263+
"La",
264+
"LAB",
265+
"P",
266+
"PA",
267+
"RGB",
268+
"RGBA",
269+
"RGBa",
270+
"RGBX",
271+
"YCbCr",
272+
]
252273

253274
# raw modes that may be memory mapped. NOTE: if you change this, you
254275
# may have to modify the stride calculation in map.c too!

0 commit comments

Comments
 (0)