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

Scale around center; knowing where to move; getting coordinates, bounding boxes of paths, extracting svg path element's d attribute #126

Open
qubodup opened this issue Aug 12, 2023 · 0 comments

Comments

@qubodup
Copy link

qubodup commented Aug 12, 2023

Hi! I'm happy:
smile

But I want to be HaPpIeErRrR… With a bigger smile! (1.25x as big) kind of like this:
Inkscape screenshot

So I do this:

import svgutils.transform as sg

fig = sg.fromfile('smile.svg')
mouth = fig.find_id('path1069')
mouth.scale(1.25)
fig.save('smile-scale.svg')

But…
smile-scale

Now that I have your attention, I actually was able to get to a solution https://stackoverflow.com/questions/76889502/ but was wondering if I was missing options from svgutils that could have helped. In particular extracting the d attribute or calculating the bounding box of a path.

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

No branches or pull requests

1 participant