Skip to content

Fails on non-modulo-4-byte-width images #1

@dvx

Description

@dvx

Hey! I'm using your library for a little toy project where I needed to parse a BMP file. Unfortunately, the code doesn't handle proper BMP (multiple-of-4) padding and will fail on non-modulo-4-byte-width images. To see what I mean, see this image:
BMP Padding

And for more documentation, see this website: http://www.instesre.org/howto/BW_image/ReadingBitmaps.htm

I made changes that should now properly parse all BMP files and I'll make a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions