1littlecoder commited on
Commit
3d2d856
1 Parent(s): 7ce7a4f

trying with a margin and smaller size

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=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)
 
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)