---
# System prepended metadata

title: 製作Gif

---

# 製作Gif
[python 製作 Gif](https://imageio.readthedocs.io/en/stable/examples.html)

- 參數參考
![](https://i.imgur.com/NUwoSRs.png)
```python=
def gif(id,stackList):
    # mode 要串聯的形式,fps 幀數
    name = id+".gif"
    with imageio.get_writer(name, mode='I',fps=1) as writer:
        for filename in stackList:
            image = imageio.imread("./sis~3/"+filename)
            writer.append_data(image)
```
