https://github.com/beenotung/gif-to-apng
https://github.com/beenotung/gif-to-apng
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/beenotung/gif-to-apng
- Owner: beenotung
- Created: 2018-06-13T05:16:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-13T05:46:29.000Z (over 7 years ago)
- Last Synced: 2025-02-18T11:57:27.125Z (8 months ago)
- Language: JavaScript
- Size: 274 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 🖼 gif-to-apng
Convert a gif to apng
This module is a simple wrapper around [gif2apng](https://sourceforge.net/projects/gif2apng/) since i coudln't find any other modules for creating apng in node.
## Install```sh
# for code reuse
yarn add @beenotung/gif-to-apng# for cli integration (command line)
yarn global add @beenotung/gif-to-apng
```## Use
in javascript
```js
const toApng = require('@beenotung/gif-to-apng')toApng('path/to/image.gif')
.then(() => console.log('Done 🎉'))
.catch(error => console.log('Something went wrong 💀', error))
```or in the shell
```bash
gif-to-apng example.gif
```## API
### toApng(source, [output])
Convert a .gif to apng
#### source
Type: `string`
Path to the gif you want to convert
#### output
Type: `string`
Optional path to output file, defaults to source with .png extension
### Credits
[gif2apng](https://sourceforge.net/projects/gif2apng/) made by [Max Stepin](maxst@users.sourceforge.net)
[gif-to-apng](https://www.npmjs.com/package/gif-to-apng) made by albinekb