sliva0/tgradish
소개
Telegram video, static and animated stickers and emoji from videos, images or pixel art, in a GUI or CLI
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originaltgradish
Convert videos, images, and pixel art into Telegram stickers and custom emoji using the GUI or command line:
- Video stickers and emoji (WebM) from any video, GIF, or image.
- Animated stickers and emoji (
.tgs) from pixel art: GIF, APNG, WebP, Aseprite, sprite sheets, or folders of frames. - Static stickers and emoji (WebP) from an image or a single video frame.
Video stickers and emoji can exceed Telegram's 3-second limit: tgradish spoofs the duration in the file metadata so Telegram accepts them.

Installation
All releases are on the Releases page. The links below point to the latest release.
Windows
Only x86-64 is supported. Release builds include ffmpeg.
- Download tgradish-windows-x86_64.zip, unpack it, and run
tgradish.exe; or - Download tgradish.exe by itself.
Linux
Both x86-64 and aarch64 are supported. $(uname -m) selects the file for your architecture.
Debian, Ubuntu, Mint and other Debian-based distributions
Includes ffmpeg:
wget https://github.com/sliva0/tgradish/releases/latest/download/tgradish-linux-$(uname -m).deb
sudo apt install ./tgradish-linux-$(uname -m).deb
Fedora, openSUSE and other RPM-based distributions
Includes ffmpeg:
curl -LO https://github.com/sliva0/tgradish/releases/latest/download/tgradish-linux-$(uname -m).rpm
sudo dnf install ./tgradish-linux-$(uname -m).rpm
# or on openSUSE
sudo zypper install --allow-unsigned-rpm ./tgradish-linux-$(uname -m).rpm
Arch Linux
Available on the AUR:
tgradish— builds from source, uses system ffmpegtgradish-bin— prebuilt binary, uses system ffmpegtgradish-static-bin— prebuilt binary with ffmpeg built in
paru -S tgradish-bin
# or
yay -S tgradish-bin
NixOS and Nix
Uses nixpkgs' ffmpeg:
nix run github:sliva0/tgradish # run once
nix profile install github:sliva0/tgradish # install permanently
Any Linux with glibc 2.28 or newer
Tarball with ffmpeg built in:
curl -L https://github.com/sliva0/tgradish/releases/latest/download/tgradish-linux-$(uname -m).tar.gz | tar -xz
install -Dm755 tgradish-*/tgradish ~/.local/bin/tgradish
For musl systems (such as Alpine), use tgradish-linux-musl-$(uname -m).tar.gz. To use your system's ffmpeg on glibc systems, use tgradish-linux-$(uname -m)-system-ffmpeg.tar.gz. Archives also contain a .desktop file, icons, man pages, and shell completions.
Cargo
Requires Rust 1.95 or newer and a C compiler; uses the system's ffmpeg:
cargo install tgradish
From source
Requires Rust 1.95 or newer and a C compiler; uses the system's ffmpeg:
git clone https://github.com/sliva0/tgradish
cd tgradish
cargo install --locked --path crates/cli
macOS
macOS is untested and has no prebuilt releases yet. If you can help test on macOS, get in touch.
Building from source with Homebrew's ffmpeg may work:
brew install ffmpeg rust
cargo install tgradish
1.x
The older Python 1.x version lives on the 1.x branch and PyPI. Its command line differs from 2.x; see CHANGELOG.md.
Dependencies
Release builds and tgradish-static-bin include ffmpeg. All other builds (system-ffmpeg tarballs, tgradish, tgradish-bin, Nix, and Cargo installs) run ffmpeg and ffprobe from PATH. They require ffmpeg 6.0 or newer with libvpx for VP9 encoding (the AUR and Nix packages install this automatically). Run tgradish ffmpeg to check which ffmpeg tgradish uses and whether it can make video stickers.
These features work without ffmpeg:
- Animated
.tgsstickers from pixel art (images, GIF, APNG, WebP, Aseprite, sprite sheets, or frame folders) tgradish spooftgradish inspecton stickers (WebM, WebP, TGS), images, animations, and Aseprite files (inspecting other videos requires ffmpeg)
Usage examples
Run tgradish gui to open the GUI, or launch tgradish from a file manager or application menu. Press F1 in the GUI to view keyboard shortcuts. The GUI is in English (British and American), Ukrainian, Russian, Brazilian Portuguese, Spanish, Indonesian, Uzbek, Turkish, German, and French: it follows the system's language, or the one picked under Language (🌐) in Settings. The translations are first drafts awaiting review by native speakers; corrections are welcome (see CONTRIBUTING.md).
Command-line examples:
tgradish convert clip.mp4 # video sticker: clip.sticker.webm
tgradish convert clip.mp4 --target emoji # video emoji: clip.emoji.webm
tgradish convert walk.ase -f tgs # animated sticker: walk.sticker.tgs
tgradish convert photo.jpg -f webp # static sticker: photo.sticker.webp
tgradish watch ~/Videos -O ~/Stickers # convert new videos and images automatically
tgradish inspect clip.sticker.webm # check file details and Telegram limits
tgradish spoof ready.webm long.webm # spoof an existing WebM's duration into long.webm
Convert only the idle tag of an Aseprite file with the sketch layer hidden:
tgradish convert walk.ase -f tgs --tag idle --hide-layers sketch
Run tgradish --help for all commands, and tgradish <command> --help for each command's options.
Shell completions: tgradish completions bash|zsh|fish|nushell|powershell (packages install them already). Your own presets go in the directory tgradish preset path prints.
To configure defaults, run tgradish config init to create the config directory and write an annotated example config (it will not overwrite an existing file), or tgradish config example to print the example without writing it.
Scripting
--jsonoutputs JSON Lines (one compact JSON object per line).convertandwatchprint one event per line,startedfirst andfinishedlast for each file, and failures aserrorevents.-qprints only the paths of created files, one per line.
Exit statuses:
0— Success.watchalso exits with0when cancelled.1— Something failed. With several inputs, this wins over3.2— Invalid command-line arguments.3— Everything was converted or read, but Telegram would reject a result or an inspected file.130—convertwas cancelled (Ctrl-C or--cancel-on-stdin).141— Standard output was closed early on Unix (1on other platforms), for example when piped intohead.128 + N— Stopped by signalN(SIGTERMorSIGHUP) on Unix, for example143forSIGTERM.
Contributing
See CONTRIBUTING.md, which also explains how to translate the GUI. Send feedback to @s0untitled on Telegram or open an issue on GitHub.
Licence
MIT License. Builds that include ffmpeg also distribute ffmpeg under the LGPL, with source archives attached to each release. Run tgradish licenses to print all bundled licence notices.
관련 프로젝트 살펴보기
불러오는 중…