Transform lottie JSON file to atlas format in galacean engine. This tool will generate a folder which contains three files: a processed lottie JSON file, an atlas file and an image.
- Install
npm i @galacean/tools-atlas-lottie -g- Use command in terminal
if lottie file has base64 images:
galacean-atlas-lottie -s lottieFile.jsonif lottie file has images in a directory:
galacean-atlas-lottie -s lottieFile.json -i ./images- Install
npm i @galacean/tools-atlas-lottie --save- Call api
const lottieTransform = require("@galacean/tools-atlas-lottie");
lottieTransform("lottieFile.json");