Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed loading L mode BMP RLE8 images #6384

Merged
merged 1 commit into from Jun 21, 2022
Merged

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