mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-16 11:12:29 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
5ca413dd38
commit
6a9b404c11
|
@ -89,6 +89,7 @@ def test_no_resize() -> None:
|
||||||
im.thumbnail((64, 64))
|
im.thumbnail((64, 64))
|
||||||
assert im.size == (64, 64)
|
assert im.size == (64, 64)
|
||||||
|
|
||||||
|
|
||||||
def test_load_first_unless_jpeg() -> None:
|
def test_load_first_unless_jpeg() -> None:
|
||||||
# Test that thumbnail() still uses draft() for JPEG
|
# Test that thumbnail() still uses draft() for JPEG
|
||||||
with Image.open("Tests/images/hopper.jpg") as im:
|
with Image.open("Tests/images/hopper.jpg") as im:
|
||||||
|
|
|
@ -1277,7 +1277,7 @@ class TiffImageFile(ImageFile.ImageFile):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def size(self) -> tuple[int, int]:
|
def size(self) -> tuple[int, int]:
|
||||||
if hasattr(self, 'tag_v2'):
|
if hasattr(self, "tag_v2"):
|
||||||
if self.tag_v2.get(ExifTags.Base.Orientation) in (5, 6, 7, 8):
|
if self.tag_v2.get(ExifTags.Base.Orientation) in (5, 6, 7, 8):
|
||||||
return (self._size[1], self._size[0])
|
return (self._size[1], self._size[0])
|
||||||
return self._size
|
return self._size
|
||||||
|
|
Loading…
Reference in New Issue
Block a user