Skip to content

Commit 74e36e0

Browse files
committed
Added RGBX and CMYK as alternatives for RGBA array data
1 parent 9973722 commit 74e36e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PIL/Image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3401,7 +3401,7 @@ def fromqpixmap(im: ImageQt.QPixmap) -> ImageFile.ImageFile:
34013401
((1, 1), ">f8"): ("F", "F;64BF", []),
34023402
((1, 1, 2), "|u1"): ("LA", "LA", ["La", "PA"]),
34033403
((1, 1, 3), "|u1"): ("RGB", "RGB", ["YCbCr", "LAB", "HSV"]),
3404-
((1, 1, 4), "|u1"): ("RGBA", "RGBA", ["RGBa"]),
3404+
((1, 1, 4), "|u1"): ("RGBA", "RGBA", ["RGBa", "RGBX", "CMYK"]),
34053405
# shortcuts:
34063406
((1, 1), f"{_ENDIAN}i4"): ("I", "I", []),
34073407
((1, 1), f"{_ENDIAN}f4"): ("F", "F", []),

0 commit comments

Comments
 (0)