Skip to content

Commit

Permalink
Add test of image with palette
Browse files Browse the repository at this point in the history
  • Loading branch information
zimeon committed May 18, 2016
1 parent 90d0d09 commit 867c53f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file added testimages/robot_palette_320x200.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions tests/test_manipulator_pil.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ def test_do_quality(self):
m.do_first()
self.assertEqual(m.do_quality('bitonal'), None)
self.assertEqual(m.image.mode, '1')
# test with image with palette (mode P in PIL)
m = IIIFManipulatorPIL()
m.srcfile = 'testimages/robot_palette_320x200.gif'
m.do_first()
self.assertEqual(m.do_quality('color'), None)
self.assertEqual(m.image.mode, 'RGB')

def test_do_format(self):
"""Format."""
Expand Down

0 comments on commit 867c53f

Please sign in to comment.