https://github.com/zevlg/tgs2png
Convert Telegram's animated stickers in TGS format into series of PNG images
https://github.com/zevlg/tgs2png
Last synced: 8 months ago
JSON representation
Convert Telegram's animated stickers in TGS format into series of PNG images
- Host: GitHub
- URL: https://github.com/zevlg/tgs2png
- Owner: zevlg
- License: gpl-3.0
- Created: 2019-09-11T00:54:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-24T20:04:05.000Z (over 4 years ago)
- Last Synced: 2025-04-09T19:01:22.659Z (about 1 year ago)
- Language: C
- Size: 37.1 KB
- Stars: 29
- Watchers: 5
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/zevlg/tgs2png/actions)
[](https://aur.archlinux.org/packages/tgs2png-git)
# tgs2png
Convert Telegram's animated stickers in TGS format into series of PNG
images.
Requires:
* librlottie `$ apt install librlottie-dev`
* libpng `$ apt install libpng-dev`
# Building
```console
$ mkdir build
$ cd build
$ cmake ..
$ make
# copy tgs2png somewhere into $PATH
```
# Running
NOTE: Telegram's TGS format is a gzipped rlottie file.
Get info about TGS file:
```console
$ gunzip -c sample.tgs | tgs2png -i -
```
Extract 10's frame:
```console
$ gunzip -c sample.tgs | tgs2png -o 10 -n 1 - > frame10.png
```