lottie-constructor
v1.0.10
Published
A tool to convert PNG frames to Lottie JSON format
Downloads
5
Maintainers
Readme
Lottie Constructor
lottie-constructor
is a command-line tool that converts a sequence of PNG frames into a Lottie JSON animation file. This tool is useful for creating animations in Lottie format from individual image frames.
Features
- Converts PNG frames to a Lottie JSON animation.
- Supports specifying input directory, output file, and frame rate.
Prerequisites
Ensure you have Node.js installed on your system.
Install Globally
To install the package globally and use it from the command line, run:
npm install -g lottie-constructor
Usage
lottie-constructor [options]
Options
- -v :version
- -i, --input 'dir' : Input directory containing PNG frames. Defaults to the current directory (./).
- -o, --output 'file' : Output Lottie JSON file. Defaults to output.json.
- -f, --framerate 'rate': Frame rate of the animation. Defaults to 24.
ex: lottie-constructor -i /path/to/frames -o /path/to/output.json -f 30
the tool by default will assign the input directory to the current directory ./
if -i
is not provided, also the frame rate -f
by default i will be 24