forked from distok/LFE
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
.gitignore | 2 years ago | |
CMakeLists.txt | 2 years ago | |
LICENSE | 3 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago | |
lfe.cpp | 3 years ago | |
lodepng.cpp | 3 years ago | |
lodepng.h | 3 years ago |
README.md
LFE
Tool to extract PNG frames from Lottie animations using rlottie.
Codebase is a mess. You've been warned.
Deps
- https://github.com/Samsung/rlottie -> Don't forget to do make install (you'll likely want to go with the cmake route)
- https://github.com/lvandeve/lodepng -> Already included here. Licensed Zlib.
You'll also need g++.
How to build and install
make
To install:
sudo make install
How to use
lfe mylottieanimation.json 420x420
This will extract all frames as PNG files in the working directory.
Credit where it's due
- Most of the rlottie code is based on lottie2gif.cpp example from https://github.com/Samsung/rlottie (MIT)
- The PNG encoding related code is based on lodepng's examples