Spaces:
Sleeping
Sleeping
Update
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def resize_image(image: Image, percentage: float):
|
|
13 |
# Redimensionar la imagen manteniendo la proporci贸n
|
14 |
width, height = image.size
|
15 |
new_size = (int(width * percentage), int(height * percentage))
|
16 |
-
resized_image = image.resize(new_size, Image.ANTIALIAS
|
17 |
return resized_image
|
18 |
|
19 |
def main():
|
|
|
13 |
# Redimensionar la imagen manteniendo la proporci贸n
|
14 |
width, height = image.size
|
15 |
new_size = (int(width * percentage), int(height * percentage))
|
16 |
+
resized_image = image.resize(new_size, Image.Resampling.LANCZOS) # Usar LANCZOS en lugar de ANTIALIAS
|
17 |
return resized_image
|
18 |
|
19 |
def main():
|