Add more images for testing
BIN
tests/files/palette_should_be_grayscale.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
tests/files/rgb_should_be_grayscale.png
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
tests/files/rgb_should_be_rgb.png
Normal file
|
After Width: | Height: | Size: 112 KiB |
BIN
tests/files/rgba_should_be_grayscale.png
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
tests/files/rgba_should_be_grayscale_alpha.png
Normal file
|
After Width: | Height: | Size: 123 KiB |
BIN
tests/files/rgba_should_be_rgb.png
Normal file
|
After Width: | Height: | Size: 127 KiB |
BIN
tests/files/rgba_should_be_rgba.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
|
|
@ -358,7 +358,7 @@ fn palette_should_be_grayscale() {
|
|||
};
|
||||
|
||||
assert!(png.ihdr_data.color_type == png::ColorType::Grayscale);
|
||||
assert!(png.ihdr_data.bit_depth == png::BitDepth::Eight);
|
||||
assert!(png.ihdr_data.bit_depth == png::BitDepth::Four);
|
||||
|
||||
let old_png = image::open(&input).unwrap();
|
||||
let new_png = image::open(&output).unwrap();
|
||||
|
|
|
|||