Skip to content

Conversation

@radarhere
Copy link
Member

Resolves #6383

At the moment, the RLE8 decoder in BmpImagePlugin always uses P mode. The issue features a BMP image with RLE8 compression in L mode. The conflicting modes raise an error.

Since L mode is just P mode data without a palette, this PR just adjusts the RLE8 decoder mode accordingly.

@radarhere radarhere added the BMP label Jun 20, 2022
@hugovk hugovk merged commit e9715b2 into python-pillow:main Jun 21, 2022
@radarhere radarhere deleted the bmp_rle8 branch June 21, 2022 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ValueError: unknown raw mode for given image mode

2 participants