ed-asriyan / lottie-converter

Converts Lottie Animations (.json / .lottie) and Telegram stickers (*.tgs) to GIF / PNG / APNG / WEBP / WEBM
https://t.me/tgtowabot
MIT License
795 stars 72 forks source link

CLI #86

Closed GreenLunar closed 5 months ago

GreenLunar commented 7 months ago

Please provide CLI interface, because there are cases in which TGS is saved and the set is unknown of ever was.

Also, it would be nicer to have CLI instead of tracking our behaviour.

ed-asriyan commented 7 months ago

here is CLI, please find it in README.md:

usage: ./bin/lottie_to_gif.sh [--help] [--output OUTPUT] [--height HEIGHT] [--width WIDTH] [--threads THREADS] [--fps FPS] [--quality QUALITY] path

Lottie animations (.json) and Telegram stickers for Telegram (*.tgs) to animated .gif converter

Positional arguments:
path              Path to .json or .tgs file to convert

Optional arguments:
-h, --help        show this help message and exit
--output OUTPUT   Output file path
--height HEIGHT   Output image height. Default: 
--width WIDTH     Output image width. Default: 512
--fps FPS         Output frame rate. Default: 50
--threads THREADS Number of threads to use. Default: number of CPUs
--quality QUALITY Output quality. Default: 90