Skip to content

SVG scale problem while painting #91

Closed Answered by Frank-99
Frank-99 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes sorry, I'm not too familiar with discussions, but it makes more sense for this to be here...

I get the viewport and viewbox part, but my issue was with the stroke scaling. Let me explain.
So far I've had some experience with SVGs outside of Java and the only times I had to work with scaling them, I imagine the software I was using must have scaled the path and not the SVG itself. Infact, looking at one in chrome now and playing with the values, the line gets bigger with the design when scaling it up... I guess I'll have to proportionally reduce the stroke width attribute with the aumenting of the SVG dimension to achieve the desired result...

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Frank-99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #90 on October 27, 2023 18:21.