Animated stickers for Telegram (*.tgs) to animated GIFs converter
This is a modified version to make it an NPM module and use it for my own purposes. There is a better implementation from the upstream, written in C++. check it out. The following README is sourced from the upstream.
👉 https://t.me/tgstogifbot 👈
To easily convert stickers to GIFs you can use Telegram BotThis is old version of converter written in JavaScript. It uses puppeteer and chromium, so this one works slower. Use can find C++ version in master branch.
Docker
Using-
Build the image:
docker build -t tgs-to-gif .
-
Convert! Pass directory with stickers and run:
docker run --rm -v <path to directory with stickers>:/source tgs-to-gif
The result will be saved next to each source sticker file in the same directory.
Using nodejs and gifski
Install
Convert
Pass one or several stickers:
node cli.js sticker1.tgs sticker2.tgs ...
or pass a directory:
node cli.js /home/ed/Downloads/super_pack/
The result will be saved next to each source sticker file in the same directory.
CLI arguments
$ node cli.js --help
usage: cli.js [-h] [--height HEIGHT] [--width WIDTH] [--fps FPS] paths [paths ...]
Animated stickers for Telegram (*.tgs) to animated GIFs converter
Positional arguments:
paths Paths to .tgs files to convert
Optional arguments:
-h, --help show this help message and exit
--height HEIGHT Output image height. Default: auto
--width WIDTH Output image width. Default: auto
--fps FPS Output frame rate. Default: auto
Notices
You can download .tgs files using @Stickerdownloadbot.