This is a Python implementation of creating the GIF image with a collection of static images (e.g., PNG/JPG images).
-
Creating a GIF image with each frame having the same duration.
-
Creating a GIF image with the first and the last frames having different (longer) duration.
- imageio 2.4.1
-
Prepare a collection of static images with sorted names (e.g.,
01.png
,02.png
, ...) in a folder (e.g.,IMAGE/
). -
Specify user settings (
DURATION_FRAME
,PATTERN
, etc.) in the code (see comments for details). -
Run
run_GIFCreator.py
orrun_GIFCreator_ipy.ipynb
to create the GIF image with static images. -
The created GIF image will be saved in the pre-specified folder (e.g.,
IMAGE_GIF/
).
- The GIF image with SAME frame duration (
PATTERN = 1, DURATION_FRAME = 0.5
).
- The GIF image with DIFFERENT frame duration (
PATTERN = 2, DURATION_FRAME = 0.5 or 1.5
).
Please star this repository if you found its content useful. Thank you very much. ^_^
如果该程序对您有帮助,请为该程序加星支持哈,非常感谢。^_^