Simple scale to margins #665
marcrleonard
started this conversation in
General
Replies: 1 comment
-
Thanks for the feedback. From your description, I'm not 100% sure about the exact outcome you are looking for, in particular when it comes to the "out of bounds" part of your example SVG. Is that the expected output? ![]() FWIW, this is how I obtained this result:
In any case, here are some relevant info on how vpype generally behaves:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm having a hell of time accomplishing something (seemingly) simple. Whenever I create art, I do so with the paper dimensions in mind. So if I'm plotting to an 11x14, I will set my width/height to 356x276mm. The vast majority of the time when I am preparing the the SVG for plotting all I want to do scale the entire thing to provide a margin around the outside (say, 1cm). With vpype, I can't seem to accomplish this in a simple way. I've tried:
vpype read ./source.svg layout --fit-to-margins 1cm tight write --page-size 356x276mm ./output.svg
(source.svg included in this post)This does provide the margin, but it completely changes where the artwork is.
Unless I have a vast misunderstanding on how some of the commands work (which, I may), my overall impression is that there should be a a lot more inheritance of the original artwork so there is more of a 'do no harm' attitude. Things like moving/centering/write dimensions should all be a little less destructive. For instance, when calling
write someart.svg
it should write the output as the same dimensions as the source.Anyways, just some thoughts! I think the tool is really great, as it provides all the buttons and switches you'd need. But for some reason, simple operations seem very hard to accomplish without a lot of commands.
Beta Was this translation helpful? Give feedback.
All reactions