MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / export_to_gif

Function export_to_gif

diffusers/src/diffusers/utils/export_utils.py:28–40  ·  view source on GitHub ↗
(image: List[PIL.Image.Image], output_gif_path: str = None, fps: int = 10)

Source from the content-addressed store, hash-verified

26
27
28def export_to_gif(image: List[PIL.Image.Image], output_gif_path: str = None, fps: int = 10) -> str:
29 if output_gif_path is None:
30 output_gif_path = tempfile.NamedTemporaryFile(suffix=".gif").name
31
32 image[0].save(
33 output_gif_path,
34 save_all=True,
35 append_images=image[1:],
36 optimize=False,
37 duration=1000 // fps,
38 loop=0,
39 )
40 return output_gif_path
41
42
43def export_to_ply(mesh, output_ply_path: str = None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected