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

Scaling problem and workaround #26

Open
stuwar94 opened this issue Mar 20, 2021 · 3 comments
Open

Scaling problem and workaround #26

stuwar94 opened this issue Mar 20, 2021 · 3 comments

Comments

@stuwar94
Copy link

Background: My wife uses a vector drawing program called Garment Designer. Unfortunately it doesn’t support export of vector files so we “print” a pdf using the native Apple print dialog. This is opened in Inkscape in order to use the gcodetools extension.

Problem: The generated gcode gives rise to a pattern nearly 4 times larger than the original.

Workaround: Inspection of the Orientation Points reveals that instead of being spaced 100mm apart the distance is 26.458mm. This seems to indicate that although I have correctly set page units to mm, somewhere in the pdf (and subsequent svg) there is a setting indicating px. The workaround is to select the Orientation Points group and apply a scale of 377.955% (the inverse of the 26.458 distance).

I did try to modify the code but although I successfully added an option to the inx file I’m not well enough versed in Python to make use of the option! Could you consider adding that option for those who are working from pdf source and have the same issue. Thanks.

@whatdtech
Copy link

whatdtech commented Apr 14, 2022

Hi Sir @stuwar94, I'm facing the same error and am unable to apply your workaround. I didn't find the Orientation Points group option to apply scale as you said in the extension options, can you please elaborate

@stuwar94
Copy link
Author

The orientation points are located at the bottom right of the Inkscape drawing. Zoom in and you will see that set (shown selected) as per the attached image.
A9A690BD-775C-4222-A68B-80E4D4FD136C

@stuwar94
Copy link
Author

Here’s my workflow. Hope it helps!
Workflow.pdf

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

2 participants