mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-25 00:34:14 +03:00
12 bit tiffs come out as 12 bits from libtiff
This commit is contained in:
parent
cc5e8f0f6d
commit
9d06fa74be
|
@ -811,7 +811,7 @@ class TiffImageFile(ImageFile.ImageFile):
|
|||
# we're expecting image byte order. So, if the rawmode
|
||||
# contains I;16, we need to convert from native to image
|
||||
# byte order.
|
||||
if self.mode in ('I;16B', 'I;16'):
|
||||
if self.mode in ('I;16B', 'I;16') and 'I;16' in rawmode:
|
||||
rawmode = 'I;16N'
|
||||
|
||||
# Offset in the tile tuple is 0, we go from 0,0 to
|
||||
|
|
Loading…
Reference in New Issue
Block a user