broyang commited on
Commit
74b0b86
·
1 Parent(s): 261ca8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.8) # 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))
 
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))