Spaces:
Sleeping
Sleeping
Vivien Chappelier
commited on
Commit
•
fbe5687
1
Parent(s):
8ab7f2a
use LANCZOS downsampling filter
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ class BZHStableSignatureDemo(object):
|
|
68 |
if downscale != 1:
|
69 |
size = img.size
|
70 |
size = (int(size[0] / downscale), int(size[1] / downscale))
|
71 |
-
img = img.resize(size, Image.
|
72 |
if crop != 0:
|
73 |
width, height = img.size
|
74 |
area = width * height
|
|
|
68 |
if downscale != 1:
|
69 |
size = img.size
|
70 |
size = (int(size[0] / downscale), int(size[1] / downscale))
|
71 |
+
img = img.resize(size, Image.Resampling.LANCZOS)
|
72 |
if crop != 0:
|
73 |
width, height = img.size
|
74 |
area = width * height
|