mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-19 08:41:59 +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
90a832ef03
commit
c373c498d9
|
@ -292,10 +292,7 @@ class TestImageResize:
|
|||
|
||||
def resize_scale(mode: str, scale: float) -> None:
|
||||
img = hopper(mode)
|
||||
size = (
|
||||
int(self.width * scale),
|
||||
int(self.height * scale)
|
||||
)
|
||||
size = (int(self.width * scale), int(self.height * scale))
|
||||
out = img.resize(scale=scale)
|
||||
assert out.mode == mode
|
||||
assert out.size == tuple(size)
|
||||
|
|
|
@ -2290,12 +2290,9 @@ class Image:
|
|||
if reducing_gap is not None and reducing_gap < 1.0:
|
||||
msg = "reducing_gap must be 1.0 or greater"
|
||||
raise ValueError(msg)
|
||||
|
||||
|
||||
if scale:
|
||||
size = (
|
||||
int(self.width * scale),
|
||||
int(self.height * scale)
|
||||
)
|
||||
size = (int(self.width * scale), int(self.height * scale))
|
||||
|
||||
self.load()
|
||||
if box is None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user