Skip to content

To create a GIF image with user specified duration. [简单实用] 生成自定义延时的GIF图像。

License

Notifications You must be signed in to change notification settings

HeZhang1994/gif-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GIF Image Creator

image image image

This is a Python implementation of creating the GIF image with a collection of static images (e.g., PNG/JPG images).

Functions

  • 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.

Dependency

  • imageio 2.4.1

Usage

  1. Prepare a collection of static images with sorted names (e.g., 01.png, 02.png, ...) in a folder (e.g., IMAGE/).

  2. Specify user settings (DURATION_FRAME, PATTERN, etc.) in the code (see comments for details).

  3. Run run_GIFCreator.py or run_GIFCreator_ipy.ipynb to create the GIF image with static images.

  4. The created GIF image will be saved in the pre-specified folder (e.g., IMAGE_GIF/).

Results

  • The GIF image with SAME frame duration (PATTERN = 1, DURATION_FRAME = 0.5).

Equivariance

  • The GIF image with DIFFERENT frame duration (PATTERN = 2, DURATION_FRAME = 0.5 or 1.5).

Equivariance


Please star this repository if you found its content useful. Thank you very much. ^_^

如果该程序对您有帮助,请为该程序加星支持哈,非常感谢。^_^

About

To create a GIF image with user specified duration. [简单实用] 生成自定义延时的GIF图像。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages