(image: List[PIL.Image.Image], output_gif_path: str = None, fps: int = 10)
| 26 | |
| 27 | |
| 28 | def 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 | |
| 43 | def export_to_ply(mesh, output_ply_path: str = None): |
nothing calls this directly
no outgoing calls
no test coverage detected