convert apng to gif.
Project description
APNG2GIF
將 APNG 圖片轉換成 GIF 圖片
What is APNG?
APNG(Animated Portable Network Graphics)格式是PNG的點陣圖動畫擴充,但未獲PNG組織官方認可。其擴充方法類似GIF 89a,仍對原版PNG保持向下相容。APNG第1影格為標準PNG圖像,剩餘的動畫和影格速等資料放在PNG擴充資料塊,因此只支援原版PNG的軟體會正確顯示第1影格。APNG與Mozilla社區關係密切,格式標準文件設在Mozilla網站。
在哪邊看的到 APNG?
在台灣最常看到的就是 LINE 的貼圖,就是使用 APNG
或者 LINE Store 的貼圖預覽也是使用 APNG
如何使用
# 安裝 Install
pip install apng2gif
使用
- 指令 CLI
# 輸出 GIF 至目前工作目錄 apng2gif -i 'apng_path' # 指定輸出路徑及檔案名稱 apng2gif -i 'apng_path' -o 'output_gif_path' # 設定 GIF 播放次數,不包含第一次 apng2gif -i 'apng_path' -l 3 # 查看所有設定 apng2gif -h - 匯入 import
from apng2gif import APNG2GIF test = APNG2GIF() test.apng2gif(apngfile, loop=0, output=None)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
apng2gif-1.0.2.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
apng2gif-1.0.2-py3-none-any.whl
(17.8 kB
view details)
File details
Details for the file apng2gif-1.0.2.tar.gz.
File metadata
- Download URL: apng2gif-1.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a386386a5ef63607cdca2d0803b11d157b4008267ed939b33da88c812fce081e
|
|
| MD5 |
8c5198fc2299407bd6c3cc912f266944
|
|
| BLAKE2b-256 |
e3023016167f867a56c80e76327eb96ea797f78c2bd13ca772efaa724aa19e1c
|
File details
Details for the file apng2gif-1.0.2-py3-none-any.whl.
File metadata
- Download URL: apng2gif-1.0.2-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
572fad20f5ce227e4a2ce6c5d0189d4d712f737f4a1b6dd9bd02f61552ee7bca
|
|
| MD5 |
144b75c17cb729f67cc62a0cd47cd102
|
|
| BLAKE2b-256 |
2ae5ce2809ef59e01555dcf6eced4b4baa53287178a8df93bdba4a7f62accf39
|