Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
1littlecoder
commited on
getting the logo center
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ def create_video(image, audio):
|
|
90 |
|
91 |
# Load the logo image, resize it, and position it in the top-right corner
|
92 |
logo = ImageClip("Logo.png").resize(height=100) # Adjust the height as needed
|
93 |
-
logo = logo.set_position(("
|
94 |
|
95 |
# Create a composite video with the main image and the logo overlay
|
96 |
video_clip = CompositeVideoClip([image_clip, logo]).set_audio(audio_clip)
|
|
|
90 |
|
91 |
# Load the logo image, resize it, and position it in the top-right corner
|
92 |
logo = ImageClip("Logo.png").resize(height=100) # Adjust the height as needed
|
93 |
+
logo = logo.set_position(("center", "bottom")).set_duration(audio_clip.duration)
|
94 |
|
95 |
# Create a composite video with the main image and the logo overlay
|
96 |
video_clip = CompositeVideoClip([image_clip, logo]).set_audio(audio_clip)
|