Skip to main content

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)
    

Metadata

Release files for apng2gif 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apng2gif 1.0.2
File Size Uploaded Provenance Actions
apng2gif-1.0.2.tar.gz 3.8 kB Without provenance Details for apng2gif-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apng2gif 1.0.2
File Interpreter ABI Platform Actions
apng2gif-1.0.2-py3-none-any.whl Python 3 none any Details for apng2gif-1.0.2-py3-none-any.whl

Total release size: 21.6 kB

Release files / apng2gif-1.0.2.tar.gz

Download URL apng2gif-1.0.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a386386a5ef63607cdca2d0803b11d157b4008267ed939b33da88c812fce081e
BLAKE2b-256 checksum
How to use checksums
e3023016167f867a56c80e76327eb96ea797f78c2bd13ca772efaa724aa19e1c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / apng2gif-1.0.2-py3-none-any.whl

Download URL apng2gif-1.0.2-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
572fad20f5ce227e4a2ce6c5d0189d4d712f737f4a1b6dd9bd02f61552ee7bca
BLAKE2b-256 checksum
How to use checksums
2ae5ce2809ef59e01555dcf6eced4b4baa53287178a8df93bdba4a7f62accf39
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for apng2gif 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page