Skip to content

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.

"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
@hugovk hugovk merged commit a921fcb into python-pillow:main Mar 23, 2022
@radarhere radarhere deleted the bmp_rle8 branch March 23, 2022 22:17
radarhere added a commit to radarhere/Pillow that referenced this pull request Mar 24, 2022
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