Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to render a specific frame? #40

Closed
notamans opened this issue Sep 25, 2020 · 5 comments · May be fixed by #45
Closed

How to render a specific frame? #40

notamans opened this issue Sep 25, 2020 · 5 comments · May be fixed by #45

Comments

@notamans
Copy link

Hi, thanks for the amazing tool that you developed.
I am trying to render a specific frame within a 750 frame animation. The tool only allows me to either render the first frame or all the frames. Am I missing something? Or this feature is not currently supported?

@affankhan43
Copy link

I just build the solution for this problem using lottie-web
Lottie-web load animation has an option named as initialSegment
In this option, you can mention specific frame number,

@affankhan43
Copy link

checkout this
c0bcd90

@notamans
Copy link
Author

Thanks for the solution. 👍
However, I ended up using puppeteer only.

@affankhan43
Copy link

@amansingh7010 what you using now, because I'm facing low-speed rendering in puppeteer

@notamans
Copy link
Author

@affankhan43 so my goal was to save the specific frames as images. I rendered the animation in puppeteer, used anim.goToAndStop(value, isFrame) from lottie library, and took screenshot using page.screenshot() from puppeteer library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants