Giter VIP home page Giter VIP logo

tgs-to-gif's Introduction

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:

    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 ci

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.