Spaces:
Build error
Build error
FridaKahlosArtCenter
commited on
Commit
·
25d0591
1
Parent(s):
a384408
antialias update
Browse files
app.py
CHANGED
@@ -75,8 +75,8 @@ def image_to_template(generated_image, logo, button_text, punchline, theme_color
|
|
75 |
]
|
76 |
|
77 |
# Generate Components
|
78 |
-
generated_image.thumbnail(image_shape, Image.
|
79 |
-
logo.thumbnail(logo_shape, Image.
|
80 |
background = Image.new("RGBA", (template_width, template_height), "WHITE")
|
81 |
# round the corners of generated image
|
82 |
mask = Image.new("L", generated_image.size, 0)
|
|
|
75 |
]
|
76 |
|
77 |
# Generate Components
|
78 |
+
generated_image.thumbnail(image_shape, Image.LANCZOS)
|
79 |
+
logo.thumbnail(logo_shape, Image.LANCZOS)
|
80 |
background = Image.new("RGBA", (template_width, template_height), "WHITE")
|
81 |
# round the corners of generated image
|
82 |
mask = Image.new("L", generated_image.size, 0)
|