2020-12-04 21:02:42 +00:00
|
|
|
# LFE
|
|
|
|
|
|
|
|
Tool to extract PNG frames from Lottie animations using rlottie.
|
|
|
|
|
|
|
|
Codebase is a mess. You've been warned.
|
|
|
|
|
|
|
|
## Deps
|
|
|
|
|
2020-12-04 21:24:46 +00:00
|
|
|
- https://github.com/Samsung/rlottie -> Don't forget to do make install (you'll likely want to go with the cmake route)
|
2020-12-04 21:02:42 +00:00
|
|
|
- https://github.com/lvandeve/lodepng -> Already included here. Licensed Zlib.
|
|
|
|
|
2020-12-04 21:24:46 +00:00
|
|
|
You'll also need g++.
|
|
|
|
|
|
|
|
## How to build and install
|
2020-12-04 21:02:42 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
make
|
|
|
|
```
|
|
|
|
|
2020-12-04 21:24:46 +00:00
|
|
|
To install:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo make install
|
|
|
|
```
|
2020-12-04 21:02:42 +00:00
|
|
|
|
|
|
|
## How to use
|
|
|
|
|
|
|
|
```bash
|
2020-12-04 21:24:46 +00:00
|
|
|
lfe mylottieanimation.json 420x420
|
2020-12-04 21:02:42 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
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
|