https://github.com/yukinarit/apnggif
Python interface to apng2gif.
https://github.com/yukinarit/apnggif
animated-gif animated-png apng command-line-tool gif python
Last synced: about 2 months ago
JSON representation
Python interface to apng2gif.
- Host: GitHub
- URL: https://github.com/yukinarit/apnggif
- Owner: yukinarit
- Created: 2020-09-06T03:29:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-04T13:22:35.000Z (4 months ago)
- Last Synced: 2025-02-25T17:12:50.875Z (about 2 months ago)
- Topics: animated-gif, animated-png, apng, command-line-tool, gif, python
- Language: C
- Homepage:
- Size: 452 KB
- Stars: 16
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# apnggif
Python interface to [apng2gif](https://sourceforge.net/projects/apng2gif/).
Both APNG (Animated PNG) are GIF are major animation formats nowadays, however there is no good python library to convert from APNG to GIF. `apnggif` is modern, easy-to-use python conversion library (and CLI) built on top of [apng2gif](https://sourceforge.net/projects/apng2gif/) which is written in C++ and also used in [EZGIF.com](https://ezgif.com/).
## Usage
`apnggif` requires python>=3.7.
```
pip install apnggif
```### CLI
If you pip install apnggif, a command line client `apnggif` is already installed in your system. Try the following command to convert APNG image to GIF.
```
apnggif ...
```For more information about options, check
```
apnggif --help
```### In a Python program
```python
from apnggif import apnggifapnggif("ball.png")
```## MacOS Prerequisites
Before you install apnggif on MacOS you need to make sure that you've installed XCode from the app store. The command line tools on their own lack the needed SDKs, if your build fails because wasn't found you've most likely forgotten this step
## License
[zlib/libpng License](https://opensource.org/licenses/Zlib).