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

SVG is broken at bottom. #506

Closed
nathan130200 opened this issue Aug 28, 2021 · 2 comments
Closed

SVG is broken at bottom. #506

nathan130200 opened this issue Aug 28, 2021 · 2 comments

Comments

@nathan130200
Copy link

After some days, when metrics action execute, produces an SVG with bottom broken.
image
For example in Wakatime status, the image crops OS usage. I reduced starred repositories (from 5 to 4) to check if solves, but same happened.

@lowlighter
Copy link
Owner

You can use config_padding option to increase the final height (try a higher percentage in your case):

# Configure padding for output image (percentage value)
# It can be used to add padding to generated metrics if rendering is cropped or has too much empty space
# Specify one value (for both width and height) or two values (one for width and one for height)
config_padding:
description: Image padding
type: string
default: 0, 8 + 11%

Partially related to #321. Unfortunately resizing SVG is not that simple because the rendering is not the same depending on operating systems, browser and environements, which may use different fonts or fonts size or not use the same rendering engine to display svgs

@nathan130200
Copy link
Author

nathan130200 commented Aug 29, 2021

Oh thanks!

Edit: Worked, very thanks for help!

@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants