Spaces:
Paused
Paused
trying with a margin and smaller size
Browse files
app.py
CHANGED
|
@@ -89,8 +89,8 @@ def create_video(image, audio):
|
|
| 89 |
image_clip = ImageClip(image).set_duration(audio_clip.duration)
|
| 90 |
|
| 91 |
# Load the logo image, resize it, and position it in the top-right corner
|
| 92 |
-
logo = ImageClip("Logo.png").resize(height=
|
| 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)
|
|
|
|
| 89 |
image_clip = ImageClip(image).set_duration(audio_clip.duration)
|
| 90 |
|
| 91 |
# Load the logo image, resize it, and position it in the top-right corner
|
| 92 |
+
logo = ImageClip("Logo.png").resize(height=75) # Adjust the height as needed
|
| 93 |
+
logo = logo.margin(bottom=10, opacity=0).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)
|