Skip to content

Why is BMP image height & width capped at 65535 pixels? #2191

Answered by JimBobSquarePants
smorokin asked this question in Q&A
Discussion options

You must be logged in to vote

It's because early bitmap versions only allowed 2 bytes max per dimension. We should actually update the rules to max out based upon the header version. Happy to accept a PR if you're keen.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@smorokin
Comment options

@smorokin
Comment options

Answer selected by smorokin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants