Add grayscale trns tests

This commit is contained in:
Andrew 2022-12-03 18:33:53 +13:00
parent 19be14021b
commit 8aa8c6158d
3 changed files with 24 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -642,3 +642,27 @@ fn issue_195() {
BitDepth::Eight,
);
}
#[test]
fn issue_426_01() {
test_it_converts(
"tests/files/issue-426-01.png",
None,
ColorType::Grayscale,
BitDepth::Eight,
ColorType::Grayscale,
BitDepth::One,
);
}
#[test]
fn issue_426_02() {
test_it_converts(
"tests/files/issue-426-02.png",
None,
ColorType::Grayscale,
BitDepth::Eight,
ColorType::Grayscale,
BitDepth::One,
);
}