mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 13:16:52 +03:00
Comments
This commit is contained in:
parent
019074670b
commit
44e4d6b49d
|
@ -54,6 +54,7 @@ import collections
|
||||||
import itertools
|
import itertools
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
# Set these to true to force use of libtiff for reading or writing.
|
||||||
READ_LIBTIFF = False
|
READ_LIBTIFF = False
|
||||||
WRITE_LIBTIFF= False
|
WRITE_LIBTIFF= False
|
||||||
|
|
||||||
|
@ -621,8 +622,8 @@ class TiffImageFile(ImageFile.ImageFile):
|
||||||
return args
|
return args
|
||||||
|
|
||||||
def _load_libtiff(self):
|
def _load_libtiff(self):
|
||||||
""" Overload method triggered when we detect a g3/g4 tiff
|
""" Overload method triggered when we detect a compressed tiff
|
||||||
Calls out to lib tiff """
|
Calls out to libtiff """
|
||||||
|
|
||||||
pixel = Image.Image.load(self)
|
pixel = Image.Image.load(self)
|
||||||
|
|
||||||
|
@ -1056,8 +1057,8 @@ def _save(im, fp, filename):
|
||||||
if Image.DEBUG:
|
if Image.DEBUG:
|
||||||
print (atts)
|
print (atts)
|
||||||
|
|
||||||
# libtiff always returns the bytes in native order.
|
# libtiff always expects the bytes in native order.
|
||||||
# we're expecting image byte order. So, if the rawmode
|
# we're storing image byte order. So, if the rawmode
|
||||||
# contains I;16, we need to convert from native to image
|
# contains I;16, we need to convert from native to image
|
||||||
# byte order.
|
# byte order.
|
||||||
if im.mode in ('I;16B', 'I;16'):
|
if im.mode in ('I;16B', 'I;16'):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user