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

issues implementing background color #50

Open
AustinHatem opened this issue Mar 6, 2021 · 1 comment
Open

issues implementing background color #50

AustinHatem opened this issue Mar 6, 2021 · 1 comment

Comments

@AustinHatem
Copy link

AustinHatem commented Mar 6, 2021

I'm having issues customizing the background colors for exporting to .png or .mp4.

It seems this issue was solved here: #transitive-bullshit/puppeteer-lottie-cli#12

here is my code:

await renderLottie({ animationData: JSON.parse(data), output: downloadPath, background: '#000000', height: canvasHeight, width: canvasWidth, puppeteerOptions:{ args: ['--no-sandbox', '--disable-setuid-sandbox'] }

the png is still coming back with a transparent background. Thanks.

@caub
Copy link

caub commented Sep 1, 2021

the black background is hardcoded here https://github.com/transitive-bullshit/puppeteer-lottie/blob/master/index.js#L313 @transitive-bullshit can I make a PR to have this configurable, or am I missing something maybe?

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