broyang commited on
Commit
4d37c7a
·
1 Parent(s): 2829498

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def freemium_watermark(img, sb_logo):
17
  sb_logo = Image.blend(transparent_img, sb_logo, alpha=0.3) # Blend the logo with the transparent image
18
  # Calculate the position to paste the logo at the center of the image
19
  paste_x_position = (width_px - new_logo_width) // 2
20
- paste_y_position = int(height_px * 0.6) - (new_logo_height // 2)
21
  img.paste(sb_logo, (paste_x_position, paste_y_position), sb_logo)
22
  # Save the image
23
  return img
 
17
  sb_logo = Image.blend(transparent_img, sb_logo, alpha=0.3) # Blend the logo with the transparent image
18
  # Calculate the position to paste the logo at the center of the image
19
  paste_x_position = (width_px - new_logo_width) // 2
20
+ paste_y_position = int(height_px * 0.4) - (new_logo_height // 2)
21
  img.paste(sb_logo, (paste_x_position, paste_y_position), sb_logo)
22
  # Save the image
23
  return img