Read test for 16 bit binary pgm file, #602

This commit is contained in:
wiredfool 2014-04-07 22:10:45 -07:00
parent e0b7f86cf6
commit 864fb95cb1
3 changed files with 10 additions and 0 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

View File

@ -12,3 +12,13 @@ def test_sanity():
assert_equal(im.mode, "RGB")
assert_equal(im.size, (128, 128))
assert_equal(im.format, "PPM")
def test_16bit_pgm():
im = Image.open('Tests/images/16_bit_binary.pgm')
im.load()
assert_equal(im.mode, 'I')
assert_equal(im.size, (20,100))
tgt = Image.open('Tests/images/16_bit_binary_pgm.png')
assert_image_equal(im, tgt)