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

Add --image-scale option for setting the scale factor of rendered image(s) #349

Merged
merged 6 commits into from
May 11, 2021

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented May 11, 2021

Added --image-scale option to set the scale factor of rendered image (up to x10).

marp markdown.md --image png --image-scale 2

Marp Core has built-in themes were sized by 1280x720. If specified --image(s) png --image-scale 2, Marp CLI will render the image that has sized 2560x1440.

It is also available for PPTX conversion. By default, Marp CLI with --pptx option will prerender images by the scale factor x2.5. This change may increase the output size of PPTX but will improve shaggy of rendered images on presenting in full-screen.

If you want the previous rendering, you can set --image-scale 1 together with --pptx option.

marp markdown.md --pptx --image-scale 1

ToDo

  • Update documentation

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.

1 participant