BMP libraries for Rust
- image reads BMP files with 1 to 32 bits per pixel, RLE4 and RLE8 compression and bit field masks, and writes 8-bit gray, 24-bit RGB and 32-bit RGBA BMP. It’s pure Rust and also opens PNG, JPEG, GIF, WebP and other formats, so converting to and from BMP is one line.
For no_std and embedded targets, the tinybmp crate from the embedded-graphics project parses BMP images without allocation.
- image The image crate is Rust's main image library. How to open and save BMP files, get dimensions without decoding, write 8-bit, 24-bit and 32-bit BMP.