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

Add a more reliable way to compute image sizes #258

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

rdw-software
Copy link
Member

The original approach was always hacky, and indeed it breaks down for certain types of images. I found that when encoding an 8-bit palette BMP as RGBA with a lot of duplicated colors, the duplicated pixels will cause the resulting BMP file to exceed the computed maximum size.

The original approach was always hacky, and indeed it breaks down for certain types of images. I found that when encoding an 8-bit palette BMP as RGBA with a lot of duplicated colors, the duplicated pixels will cause the resulting BMP file to exceed the computed maximum size.
It's inferior to the replacement in every way. Good riddance?
@rdw-software rdw-software merged commit 463a509 into main Jul 11, 2023
6 checks passed
@rdw-software rdw-software deleted the stbi-size-computation branch July 11, 2023 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant