Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

vincekruger/tgs-to-gif

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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


To easily convert stickers to GIFs you can use Telegram Bot

👉 https://t.me/tgstogifbot 👈


Using Docker

  1. Build the image:

    docker build -t tgs-to-gif .
  2. 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

  1. Install nodejs.
  2. Install gifski.
  3. Install npm dependencies:
    npm 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] 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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 74.5%
  • Dockerfile 25.5%