Slide In Effect with Images
See original GitHub issue clips = []
for _, name in urls:
img = name.replace("webp", "jpg")
Image.open(name).convert("RGB").save(img)
clips.append(ImageClip(img).set_duration(3))
video = CompositeVideoClip([
clip.fx(transfx.slide_out, duration=0.4, side="left")
for clip in clips
])
video.write_videofile(file_name,
codec="libx264", audio_codec="aac",
preset="ultrafast", fps=24, logger=None,
ffmpeg_params=[
"-vf", "pad=ceil(iw/2)*2:ceil(ih/2)*2",
"-pix_fmt", "yuv420p"
]
)
this is my code. im trying to make a slideshow from these images, but the issue is that the result is not what it should be. every clip is on top of each other and trasnition is not working, it just do the effect to a black screen: here’s the result i get:
Issue Analytics
- State:
- Created a year ago
- Comments:49 (22 by maintainers)
Top Results From Across the Web
Animate a picture on your slide
In this example, we'll animate two pictures: Select the first picture. On the Animations tab, select an animation effect. For example, select Fly...
Read more >How To Create Image Hover Overlay Slide Effects
Learn how to create image overlay hover slide effects. Image Overlay Slide. Learn how to create a sliding overlay effect to an image,...
Read more >21 Cool Slider Animation Effects
21 Cool Slider Animation Effects ... Image sliders are a common feature for websites. They are an incredibly versatile design tool that allow...
Read more >46 Image Slider - Content Carousels Design Inspiration
Handpicked collection of image slider design inspiration. ✓ GIF preview ✓ HTML CSS copy paste code. ... Bay Window Style Image Slider With...
Read more >CSS Slide-In Image
This page uses CSS animations to create slide-in images. CSS animations are a standards-compliant way of creating marquees and other animated effects.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I believe the problem is with your ordering of the operations you are performing on each clip Check the following snippet and the following output
PS. I’ve also added a set_position call to fix the positioning of the unfit images
https://user-images.githubusercontent.com/19710525/176975569-40f0d587-e8e0-4928-bb35-82e65e517d95.mp4
it works like this, thanks!