visualizeutilswrite_gif_from_images

write_gif_from_images

visualize.utils.write_gif_from_images(images, out_path, interval=40, images_format='.png', auto_sort_paths=True)

Creates a gif from a set of images, and saves it to out_path.

Parameters:
  • images (list | str) – list of images, a directory with images or a list of directories with images

  • out_path (str) – dir where the video will be generated + name of the gif

  • interval (int | float) – time interval between frames (ms)

  • images_format (str) – .png, .pdf, .jpg …

  • auto_sort_paths (bool) – paths to images sorted

Returns:

None. Writes the gif to the specified path.