mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
module level default api level
This commit is contained in:
parent
0c942911d9
commit
9bb4c51629
|
@ -63,6 +63,7 @@ DEBUG = False # Needs to be merged with the new logging approach.
|
|||
# Set these to true to force use of libtiff for reading or writing.
|
||||
READ_LIBTIFF = False
|
||||
WRITE_LIBTIFF = False
|
||||
IFD_LEGACY_API = True
|
||||
|
||||
II = b"II" # little-endian (Intel style)
|
||||
MM = b"MM" # big-endian (Motorola style)
|
||||
|
@ -276,7 +277,7 @@ class ImageFileDirectory(collections.MutableMapping):
|
|||
raise SyntaxError("not a TIFF IFD")
|
||||
self.reset()
|
||||
self.next, = self._unpack("L", ifh[4:])
|
||||
self._legacy_api = False
|
||||
self._legacy_api = IFD_LEGACY_API
|
||||
|
||||
prefix = property(lambda self: self._prefix)
|
||||
offset = property(lambda self: self._offset)
|
||||
|
|
Loading…
Reference in New Issue
Block a user