#file-format #codec #decoding #image #format #graphics

nightly dib

device independent bitmap (DIB) / BMP file format decoder

1 unstable release

0.1.0 Apr 11, 2024

#219 in #decoding

MIT license

35KB
835 lines

dib: bmp/dib format decoder

we decode your old windows file format.

support table

enc dec
palette (2|4|8 bits)
16|24|32 bpp
run length (4|8)
bitfields 🟩
CMYK
PNG
JPEG

lib.rs:

DIB, also known as BMP is a image format for bitmap storage.

this crate implements encoding and decoding most types of BMPs.

Dependencies

~285–740KB
~17K SLoC