We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eef4848 commit 4469ee0Copy full SHA for 4469ee0
Tests/test_file_ppm.py
@@ -92,6 +92,13 @@ def test_16bit_pgm() -> None:
92
assert_image_equal_tofile(im, "Tests/images/16_bit_binary_pgm.tiff")
93
94
95
+def test_p4_save(tmp_path: Path) -> None:
96
+ with Image.open("Tests/images/hopper_1bit.pbm") as im:
97
+ filename = tmp_path / "temp.pbm"
98
+ im.save(filename)
99
+ assert_image_equal_tofile(im, filename)
100
+
101
102
def test_16bit_pgm_write(tmp_path: Path) -> None:
103
with Image.open("Tests/images/16_bit_binary.pgm") as im:
104
filename = tmp_path / "temp.pgm"
0 commit comments