-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42f179e
commit d654094
Showing
3 changed files
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,18 +74,18 @@ For `mp4` outputs, the height may be different by a pixel due to the `x264` enco | |
|
||
<!-- Generated by documentation.js. Update this documentation by updating the source code. --> | ||
|
||
### [renderLottie](https://[email protected]/:transitive-bullshit/puppeteer-lottie/blob/56235fed59f7a84656f0e8508275cdfc73396dfb/index.js#L60-L382) | ||
### [renderLottie](https://[email protected]/:transitive-bullshit/puppeteer-lottie/blob/42f179e03af2529164dc0e45dbc0b0417331dd82/index.js#L60-L382) | ||
|
||
Renders the given Lottie animation via Puppeteer. | ||
|
||
Must pass either `path` or `animationData`. | ||
You must pass either `path` or `animationData` to specify the Lottie animation. | ||
|
||
`output` may be any of the following: | ||
`output` must be one of the following: | ||
|
||
- an image to capture the first frame only (png or jpg) | ||
- an image pattern (eg. sprintf format 'frame-%d.png' or 'frame-%012d.jpg') | ||
- an mp4 video file (requires FFmpeg to be installed) | ||
- a GIF file (requires Gifski to be installed) | ||
- An image to capture the first frame only (png or jpg) | ||
- An image pattern (eg. sprintf format 'frame-%d.png' or 'frame-%012d.jpg') | ||
- An mp4 video file (requires FFmpeg to be installed) | ||
- A GIF file (requires Gifski to be installed) | ||
|
||
Type: `function (opts): Promise` | ||
|
||
|