save_animated_gif
- ssapy.plotUtils.save_animated_gif(gif_name, frames, fps=30)[source][source]
Create a GIF from a sequence of image frames.
Parameters: - gif_name (str): The name of the output GIF file, including the .gif extension. - frames (list of str): A list of file paths to the image frames to be included in the GIF. - fps (int, optional): Frames per second for the GIF. Default is 30.
Returns: None
This function uses the imageio library to write a GIF file. It prints messages indicating the start and completion of the GIF writing process. Each frame is read from the provided file paths and appended to the GIF.
Example usage: frames = [‘frame1.png’, ‘frame2.png’, ‘frame3.png’] write_gif(‘output.gif’, frames, fps=24)