Fix failing tests, turns out I is different than L

This commit is contained in:
wiredfool 2014-04-08 22:44:24 -07:00
parent 88e235f3f5
commit 398450a5e4

View File

@ -146,7 +146,7 @@ def _save(im, fp, filename):
if head == b"P6":
fp.write(b"255\n")
if head == b"P5":
if rawmode == "I":
if rawmode == "L":
fp.write(b"255\n")
elif rawmode == "I;16B":
fp.write(b"65535\n")