# Animated stickers for Telegram (*.tgs) to animated GIFs converter
<hr/>
<h3 align="center">
To easily convert stickers to GIFs you can use Telegram Bot</br></br>ð https://t.me/tgstogifbot ð
</h3>
<hr/>
*FYI: There is a test version of converter written in C++ in [master-cpp](https://github.com/ed-asriyan/tgs-to-gif/tree/master-cpp) branch. It works a little faster, but generated GIFs may contain [some artifacts](https://github.com/ed-asriyan/tgs-to-gif/issues/13#issuecomment-633244547).*
## Using [Docker](https://www.docker.com/)
1. Build the image:
```bash
docker build -t tgs-to-gif .
```
2. Convert! Pass directory with stickers and run:
```bash
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
1. Install [nodejs](https://nodejs.org).
2. Install [gifski](https://gif.ski).
3. Install npm dependencies:
```bash
npm install
```
### Convert
Pass one or several stickers:
```bash
node cli.js sticker1.tgs sticker2.tgs ...
```
or pass a directory:
```bash
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] 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
```
## Notices
You can download .tgs files using [@Stickerdownloadbot](https://t.me/Stickerdownloadbot).
鈤TiAmo
- 粉丝: 26
- 资源: 4695
最新资源
- 基于断裂理论的焊接结构缺陷失效评定分析 - .pdf
- 基于改进CV模型和PCNN的NSST域焊接缺陷提取 - .pdf
- 基于改进累积和控制图的车身焊接质量控制的研究.pdf
- 基于锅壳式锅炉平管板的埋弧自动化焊接工装研究.pdf
- 基于高端液压支架高强板焊接工艺控制.pdf
- 基于工艺流程一体化焊接实训平台的开发 - .pdf
- 基于焊接工艺评定规则的承压设备焊接质量管理.pdf
- 基于焊接疲劳寿命仿真的裙板优化设计 - .pdf
- 基于机器人的泵头体焊接修复.pdf
- 基于机器视觉的枪式微型电阻焊接系统设计与应用.pdf
- 基于机器人的焊接快速成形技术 - .pdf
- 基于机器视觉的焊接跟踪技术的应用研究.pdf
- 基于激光跟踪的管道焊接机器人跟踪算法研究.pdf
- 基于加权中值各向扩散模型的焊接缺陷实时检测算法.pdf
- 基于激光加热阴极的高精密焊接电子枪研究.pdf
- 基于ssm的蛋糕甜品商城系统源码(java毕业设计完整源码+LW).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论3