Merge pull request #1555 from Nexuapex/master

ExtraSamples tag should be a SHORT, not a BYTE
This commit is contained in:
wiredfool 2015-12-07 12:53:51 +00:00
commit bceb18baa2
2 changed files with 6 additions and 1 deletions

View File

@ -106,7 +106,7 @@ TAGS_V2 = {
334: ("NumberOfInks", 3, 1),
336: ("DotRange", 3, 0),
337: ("TargetPrinter", 2, 1),
338: ("ExtraSamples", 1, 0),
338: ("ExtraSamples", 3, 0),
339: ("SampleFormat", 3, 0),
340: ("SMinSampleValue", 12, 0),

View File

@ -115,6 +115,11 @@ class TestFileTiff(PillowTestCase):
self.fail(
"Bad EXIF data passed incorrect values to _binary unpack")
def test_save_rgba(self):
im = hopper("RGBA")
outfile = self.tempfile("temp.tif")
im.save(outfile)
def test_save_unsupported_mode(self):
im = hopper("HSV")
outfile = self.tempfile("temp.tif")