mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-13 01:32:18 +03:00
PR feedback: simplified key construct for fillorder=2; indentation fixes
This commit is contained in:
parent
300bdaad9e
commit
69f315a585
|
@ -1256,11 +1256,8 @@ class TiffImageFile(ImageFile.ImageFile):
|
||||||
# bits, so stripes of the image are reversed. See
|
# bits, so stripes of the image are reversed. See
|
||||||
# https://github.com/python-pillow/Pillow/issues/279
|
# https://github.com/python-pillow/Pillow/issues/279
|
||||||
if fillorder == 2:
|
if fillorder == 2:
|
||||||
key = (
|
# Replace fillorder with fillorder=1
|
||||||
self.tag_v2.prefix, photo, sampleFormat, 1,
|
key = key[:3] + (1,) + key[4:]
|
||||||
self.tag_v2.get(BITSPERSAMPLE, (1,)),
|
|
||||||
self.tag_v2.get(EXTRASAMPLES, ())
|
|
||||||
)
|
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
print("format key:", key)
|
print("format key:", key)
|
||||||
# this should always work, since all the
|
# this should always work, since all the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user