Need help with tgs-to-gif?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

ed-asriyan
142 Stars 18 Forks MIT License 15 Commits 5 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 265,366
Ember
HTML
CSS
ffmpeg
15 commits

Animated stickers for Telegram (*.tgs) to animated GIFs converter


To easily convert stickers to GIFs you can use Telegram Bot👉 https://t.me/tgstogifbot 👈


FYI: There is a test version of converter written in C++ in master-cpp branch. It works a little faster, but generated GIFs may contain some artifacts.

Using Docker

  1. Build the image:

    bash
    docker build -t tgs-to-gif .
    
  2. Convert! Pass directory with stickers and run:

    bash
    docker run --rm -v :/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.
  2. Install gifski.
  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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.