xref: /third_party/skia/tools/lottiecap/README.md (revision cb93a386)
1cb93a386Sopenharmony_ciCapture Lottie Filmstrip in the Browser
2cb93a386Sopenharmony_ci=======================================
3cb93a386Sopenharmony_ci
4cb93a386Sopenharmony_ciCommand line application to build a 5x5 filmstrip
5cb93a386Sopenharmony_cifrom a Lottie file in the browser and then export
6cb93a386Sopenharmony_cithat filmstrip in a 1000x1000 PNG.
7cb93a386Sopenharmony_ci
8cb93a386Sopenharmony_ciFirst run
9cb93a386Sopenharmony_ci
10cb93a386Sopenharmony_ci    $ npm install
11cb93a386Sopenharmony_ci
12cb93a386Sopenharmony_ciThen run
13cb93a386Sopenharmony_ci
14cb93a386Sopenharmony_ci    $ node ./lottiecap.js --input some_lottie_file.js
15cb93a386Sopenharmony_ci
16cb93a386Sopenharmony_ciTo get more help:
17cb93a386Sopenharmony_ci
18cb93a386Sopenharmony_ci    $ node ./lottiecap.js -h
19cb93a386Sopenharmony_ci
20cb93a386Sopenharmony_ciRequirements
21cb93a386Sopenharmony_ci------------
22cb93a386Sopenharmony_ci
23cb93a386Sopenharmony_ciYou need to have a recent version of 'node' installed, i.e.  version v8.9 or
24cb93a386Sopenharmony_cilater. Get recent versions of Node from:
25cb93a386Sopenharmony_ci
26cb93a386Sopenharmony_ci    https://nodejs.org/en/download/
27cb93a386Sopenharmony_ci
28cb93a386Sopenharmony_ciIt is doubtful that your workstation's distribution has a recent version of
29cb93a386Sopenharmony_ciNode available.
30