Fecolywill commited on
Commit
f257ee8
·
verified ·
1 Parent(s): 6c59490

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -10,15 +10,18 @@ import base64
10
  SUPPORTERS = random.randint(50, 200)
11
  KO_FI_LINK = "https://ko-fi.com/fecolywill"
12
  GA_TRACKING_ID = "G-XXXXXXXXXX" # Replace with your Google Analytics ID
13
-
14
- # ===== CUSTOM WATERMARK =====
15
  class Watermarker:
16
  def __init__(self):
17
- self.font = ImageFont.truetype("arial.ttf", 24) # Larger font
18
- self.color = (255, 255, 255, 128) # Semi-transparent white
19
- self.position = "bottom-right" # Options: bottom-right, top-left, center
 
 
 
 
 
20
  self.text = "Made with AI Film Studio"
21
- self.logo = None # Set path to logo image if desired
22
 
23
  def apply(self, frames):
24
  watermarked_frames = []
 
10
  SUPPORTERS = random.randint(50, 200)
11
  KO_FI_LINK = "https://ko-fi.com/fecolywill"
12
  GA_TRACKING_ID = "G-XXXXXXXXXX" # Replace with your Google Analytics ID
13
+ # In your Watermarker class:
 
14
  class Watermarker:
15
  def __init__(self):
16
+ try:
17
+ # Try loading default font first
18
+ self.font = ImageFont.load_default().font_variant(size=24)
19
+ except:
20
+ # Fallback to basic font
21
+ self.font = ImageFont.load_default()
22
+ self.color = (255, 255, 255, 128)
23
+ self.position = "bottom-right"
24
  self.text = "Made with AI Film Studio"
 
25
 
26
  def apply(self, frames):
27
  watermarked_frames = []