An open API service indexing awesome lists of open source software.

https://github.com/sliva0/pixelart2tgs

Simple .gif to .tgs converter cli utility.
https://github.com/sliva0/pixelart2tgs

cli converter gif telegram telegram-stickers tgs

Last synced: about 1 year ago
JSON representation

Simple .gif to .tgs converter cli utility.

Awesome Lists containing this project

README

          

# pixelart2tgs

Simple .gif to .tgs converter CLI utility.

![Source GIF](https://github.com/sliva0/pixelart2tgs/raw/master/images/ralsei.gif)
![Tg demonstation](https://github.com/sliva0/pixelart2tgs/raw/master/images/tg.gif)

## Warning

This project was developed prior to [Telegram update][UPD] adding WebM format for stickers and emojis.

Before using this project, consider utilising WebM instead - it can handle higher resolution and framerate,
and I wrote a utility to work with it as well: [tgradish][TGR].

You might consider using this project if you want to make scalable animated pixel art emojis - see [example][RGI].

[UPD]: https://telegram.org/blog/video-stickers-better-reactions
[TGR]: https://github.com/sliva0/tgradish
[RGI]: https://github.com/sliva0/pixelart2tgs/issues/7

## Some not so user-friendly alternatives

- [MattBas's lottie](https://pypi.org/project/lottie/)
- [bodqhrohro's giftolottie](https://github.com/bodqhrohro/giftolottie)

## Installation

``` console
python -m pip install pixelart2tgs
```

and then usage:

``` console
python -m pixelart2tgs
```

## Usage examples

``` console
$ pixelart2tgs -i input.gif
## input.gif -> input.tgs
```

``` console
$ pixelart2tgs -i first.gif -i second.gif sticker.tgs -y
## first.gif -> first.tgs
## second.gif -> sticker.tgs
```

More info on usage:
``` console
$ pixelart2tgs --help
```

## License

[MIT License](LICENSE.txt)