Branch: Tag:

2015-08-23

2015-08-23 20:11:54 by Martin Nilsson <nilsson@fastmail.com>

Don't crash in images with zero color range.

57:      test_eq(Image.PNM.decode("P3 3 2 1 1 0 0 0 1 0 0 0 1 1 1 0 1 1 1 0 0 0"), IMAGE("78dadb969d6a90fc9423e1c18b156c7cff191818c0f8ff7f3066600000dfef0de3"))    + test_eval_error(Image.PNM.decode("P2 1 1 0 0")) +    test_do(add_constant("IMAGE"))      test_true( objectp(Image.Image()) )