tgs2gif

Converts animated stickers for Telegram (*.tgs) to animated GIFs

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
tgs2gif
001.0.44 months ago6 months agoMinified + gzip package size for tgs2gif in KB

Readme

Animated stickers for Telegram (.tgs) to animated GIFs converter CircleCI
This is a modified version to make it an NPM module and use it for my own purposes.

Using Docker

  1. Build the image:
```bash
docker build -t tgs-to-gif .
```
  1. 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.
  1. Install gifski.
  1. Install npm dependencies:
```bash
npm ci
```

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/superpack/ ``` 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
.