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

Added support for reading BMP images with RLE8 compression #6102

Merged
merged 5 commits into from Mar 23, 2022

Conversation

radarhere
Copy link
Member

Resolves #3425

See https://docs.microsoft.com/en-us/windows/win32/gdi/bitmap-compression for documentation.

While my initial commit fixes test1.bmp from the issue, it doesn't fix test3.bmp. Investigating, I found that there were rows with too much data present. So I've added another commit to trim that out.

@@ -40,6 +40,7 @@ def test_questionable():
"rgb32fakealpha.bmp",
"rgb24largepal.bmp",
"pal8os2sp.bmp",
"pal8rletrns.bmp",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When running this locally, I was told to add this by the test.

print(f"Please add {f} to the partially supported bmp specs.")

@radarhere radarhere force-pushed the bmp_rle8 branch 3 times, most recently from 55c0715 to 72beef5 Compare March 8, 2022 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RLE8 compression support for bitmap images
2 participants