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

feat: add scale arg for image export (#1263) #1274

Merged
merged 1 commit into from Feb 6, 2024

Conversation

KermanX
Copy link
Member

@KermanX KermanX commented Feb 5, 2024

This PR adds a new command line argument --scale:

slidev export --format png --scale 100
slidev export --format png --scale 0.1 --per-slide
slidev export --format md --scale 100

The internal of this feature is:

const context = await browser.newContext({
  // ...
  deviceScaleFactor: scale,
})

This can be a way to control the quality of the png export. (#1263)

Result

0.1x 0.1x
2x 2x

@antfu antfu merged commit 1eaf92a into slidevjs:main Feb 6, 2024
8 checks passed
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 this pull request may close these issues.

None yet

2 participants