gif About the number of views of the video "one time"

Asked 2 years ago, Updated 2 years ago, 317 views

I use Python and Pillow to make a GIF.If I play it, it goes back and forth, but is it like that?
For example, I think I made a video that ends by moving a figure one way from left to right (once) on the screen, but when I play it, I go from left to right and then come back from right to left to end the playback.

The loop argument is not configured (default).

Thank you for your answers and comments.

Actually, originally
https://note.nkmk.me/python-opencv-mosaic/
Create GIF animation that is slowly mosaic
I brought it from .

imgs+=imgs[-2::-1]+[Image.fromarray(src)]*5

imgs[0].save('data/temp/opencv_mosaic.gif',
             save_all=True, append_images=imgs[1:], optimize=False, duration=50)

That's what it looks like

python pillow

2022-09-30 22:00

1 Answers

The loop in the gif image is only a loop of the same motion and does not reverse playback.Therefore, there may be a bug on the program side that is creating the gif image, so please investigate it.


2022-09-30 22:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.