Created
March 24, 2025 10:53
-
-
Save cccaaannn/351c90eba41db999fef7d10dcb59faa5 to your computer and use it in GitHub Desktop.
Convert lottie to gif
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm install -g puppeteer-lottie-cli | |
| puppeteer-lottie -i "lottie.json" -o frame-%d.png | |
| ffmpeg -r 30 -i frame-%d.png -filter_complex "[0:v]fps=30,split[a][b];[a]palettegen=reserve_transparent=on:transparency_color=ffffff[p];[b][p]paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle" output.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment