bmp8bit 0.1.0

Converts raster image to 256 colors format and writes it as bmp
Documentation
use bmp8bit::{self, bytes_8bit, color_tables::windows_color_table::windows_color_table};

#[test]
fn write_multicolor_squares() {
    assert_eq!(
        std::fs::read("resources/squares_8bit.bmp").expect("Can't read image file"),
        bytes_8bit(
            image::open("resources/squares.png").expect("incorrect workspace configuration"),
            &mut windows_color_table()
        )
    );
}

#[test]
fn write_multicolor_lines() {
    assert_eq!(
        std::fs::read("resources/lines_8bit.bmp").expect("Can't read image file"),
        bytes_8bit(
            image::open("resources/lines.png").expect("incorrect workspace configuration"),
            &mut windows_color_table()
        )
    );
}