Update app.py
Browse files
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 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
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 = []
|