mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-09-24 04:56:57 +03:00
Test saving P4 images
This commit is contained in:
parent
eef4848a0a
commit
4469ee0fc0
|
@ -92,6 +92,13 @@ def test_16bit_pgm() -> None:
|
|||
assert_image_equal_tofile(im, "Tests/images/16_bit_binary_pgm.tiff")
|
||||
|
||||
|
||||
def test_p4_save(tmp_path: Path) -> None:
|
||||
with Image.open("Tests/images/hopper_1bit.pbm") as im:
|
||||
filename = tmp_path / "temp.pbm"
|
||||
im.save(filename)
|
||||
assert_image_equal_tofile(im, filename)
|
||||
|
||||
|
||||
def test_16bit_pgm_write(tmp_path: Path) -> None:
|
||||
with Image.open("Tests/images/16_bit_binary.pgm") as im:
|
||||
filename = tmp_path / "temp.pgm"
|
||||
|
|
Loading…
Reference in New Issue
Block a user