Replace with directory with Lottie animations / Telegram stickers and run:
docker run --rm -v <path to directory>:/source edasriyan/lottie-to-format
You can provide parameters via env variables:
HEIGHT
: Output image height. Default: 512WIDTH
: Output image width. Default: 512FPS
: Output frame rate. Default: apng,png,webp,webm - 60; gif - 50QUALITY
: Output quality. Default: 90THREADS
: Number of threads to use. Default: number of CPUs
Example:
docker run --rm -e HEIGHT=256 -e WIDTH=256 -e FPS=30 -v /home/ed/Downloads/lottie-animations:/source edasriyan/lottie-to-format
Results will be saved next to each source file in the same directory.