This commit is contained in:
YK 2024-07-05 16:32:16 +03:00
parent 3904ae05cf
commit 470273d387
2 changed files with 8 additions and 0 deletions

BIN
out/dice_generic.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

View File

@ -199,4 +199,12 @@ mod test {
rgb.save_with_format("out/edgecase.jpg", imageproc::image::ImageFormat::Jpeg).unwrap(); rgb.save_with_format("out/edgecase.jpg", imageproc::image::ImageFormat::Jpeg).unwrap();
} }
#[test]
fn dice_generic() {
let file = std::fs::read("in/dice.qoi").unwrap();
let rgba: RgbaImage = decode(&file).unwrap();
rgba.save("out/dice_generic.png").unwrap();
}
} }