Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def freemium_watermark(img, sb_logo):
|
|
8 |
width_px, height_px = img.size
|
9 |
# Convert the logo to "RGBA" mode and resize it to 80% of the image width
|
10 |
sb_logo = sb_logo.convert("RGBA")
|
11 |
-
new_logo_width = int(width_px * 0.
|
12 |
logo_ratio = new_logo_width / sb_logo.width
|
13 |
new_logo_height = int(sb_logo.height * logo_ratio)
|
14 |
sb_logo = sb_logo.resize((new_logo_width, new_logo_height))
|
|
|
8 |
width_px, height_px = img.size
|
9 |
# Convert the logo to "RGBA" mode and resize it to 80% of the image width
|
10 |
sb_logo = sb_logo.convert("RGBA")
|
11 |
+
new_logo_width = int(width_px * 0.7) # 80% of the image width
|
12 |
logo_ratio = new_logo_width / sb_logo.width
|
13 |
new_logo_height = int(sb_logo.height * logo_ratio)
|
14 |
sb_logo = sb_logo.resize((new_logo_width, new_logo_height))
|