arcanumpy.img_to_mp4 module
- arcanumpy.img_to_mp4.gif_maker(file_list, vid_name, mode='I', skip_rate=10, vid_type='mp4', duration=0.05, fps=5)[source]
Make a gif from a list of images.
- Parameters:
file_list (list) – List of image files.
vid_name (str) – Name of the gif file.
mode (str, optional) – Mode of the gif. The default is “I”.
skip_rate (int, optional) – Skip rate of the gif. The default is 10.
vid_type (str, optional) – Type of the video. The default is “mp4”.
duration (float, optional) – Duration for which each image is displayed in gif. The default is 0.05.
fps (int, optional) – Frames per second for mp4 video. The default is 25.
- Raises:
ValueError – If the skip_rate is not an integer.
ValueError – If the duration is not a float.
ValueError – If the file_list is empty.
ValueError – If vid_name is empty.
- Return type:
None.