mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-27 20:43:43 +03:00
Merge pull request #1555 from Nexuapex/master
ExtraSamples tag should be a SHORT, not a BYTE
This commit is contained in:
commit
bceb18baa2
|
@ -106,7 +106,7 @@ TAGS_V2 = {
|
||||||
334: ("NumberOfInks", 3, 1),
|
334: ("NumberOfInks", 3, 1),
|
||||||
336: ("DotRange", 3, 0),
|
336: ("DotRange", 3, 0),
|
||||||
337: ("TargetPrinter", 2, 1),
|
337: ("TargetPrinter", 2, 1),
|
||||||
338: ("ExtraSamples", 1, 0),
|
338: ("ExtraSamples", 3, 0),
|
||||||
339: ("SampleFormat", 3, 0),
|
339: ("SampleFormat", 3, 0),
|
||||||
|
|
||||||
340: ("SMinSampleValue", 12, 0),
|
340: ("SMinSampleValue", 12, 0),
|
||||||
|
|
|
@ -115,6 +115,11 @@ class TestFileTiff(PillowTestCase):
|
||||||
self.fail(
|
self.fail(
|
||||||
"Bad EXIF data passed incorrect values to _binary unpack")
|
"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):
|
def test_save_unsupported_mode(self):
|
||||||
im = hopper("HSV")
|
im = hopper("HSV")
|
||||||
outfile = self.tempfile("temp.tif")
|
outfile = self.tempfile("temp.tif")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user