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

Transparent background does not work when outputting in png format #555

Closed
50Bytes-dev opened this issue Oct 21, 2023 · 2 comments · Fixed by #556
Closed

Transparent background does not work when outputting in png format #555

50Bytes-dev opened this issue Oct 21, 2023 · 2 comments · Fixed by #556

Comments

@50Bytes-dev
Copy link

50Bytes-dev commented Oct 21, 2023

I'm trying to make the slide background transparent when exporting to png. it doesn't work.

section {
    background-color: transparent;
    width: 1920px;
    height: 1080px;
}

:root {
    background-color: transparent;
}
marp --theme custom.css test.md -o test.png
@50Bytes-dev
Copy link
Author

@yhatt
Copy link
Member

yhatt commented Oct 21, 2023

return await page.screenshot({ clip, type: 'png' })

I've tried using omitBackground: true but it will not yet render PNG with transparency.

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