mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-01 02:13:11 +03:00
Tests for writing hi bit pgm
This commit is contained in:
parent
f5ba642b5e
commit
2daac27713
|
@ -22,3 +22,15 @@ def test_16bit_pgm():
|
||||||
tgt = Image.open('Tests/images/16_bit_binary_pgm.png')
|
tgt = Image.open('Tests/images/16_bit_binary_pgm.png')
|
||||||
assert_image_equal(im, tgt)
|
assert_image_equal(im, tgt)
|
||||||
|
|
||||||
|
|
||||||
|
def test_16bit_pgm_write():
|
||||||
|
im = Image.open('Tests/images/16_bit_binary.pgm')
|
||||||
|
im.load()
|
||||||
|
|
||||||
|
f = tempfile('temp.pgm')
|
||||||
|
assert_no_exception(lambda: im.save(f, 'PPM'))
|
||||||
|
|
||||||
|
reloaded = Image.open(f)
|
||||||
|
assert_image_equal(im, reloaded)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user