Skip to content

Commit 5e48d54

Browse files
authored
Merge pull request #7984 from radarhere/modes
Added more modes to Image.MODES
2 parents 1cdbb5f + ce8deda commit 5e48d54

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
@@ -249,7 +249,28 @@ def _conv_type_shape(im):
249249
return shape, m.typestr
250250

251251

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

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

0 commit comments

Comments
 (0)