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

Reg marks files and scaling in Inkscape post v0.91 #9

Open
bitterjug opened this issue Jan 13, 2024 · 3 comments
Open

Reg marks files and scaling in Inkscape post v0.91 #9

bitterjug opened this issue Jan 13, 2024 · 3 comments

Comments

@bitterjug
Copy link

Hi again. I've been cutting all weekend but I can't get reg marks to work properly.
when I open the reg marks files in examples, Inkscape tells me they were created before v0.91 and I have to make a choice about how to convert them from 90dpi to 96 dpi. I've tried all options. I also tried making my own reg marks in a new Inkscape doc at exactly 180x240mm which is what Robocut is looking for by default. The cutter (Graphtec Craft Robo CC 330-20) locates the reg marks okay but then cuts out a shape that is to big by 1.066. That's the same ratio as 96:96. I don't understand how this can happen after the plotter just located all 3 reg marks. Does Robocut have a built-in assumption about 90dpi that's making it send too big paths to the cutter, or something?

@Timmmm
Copy link
Owner

Timmmm commented Jan 15, 2024 via email

@Timmmm
Copy link
Owner

Timmmm commented Jan 17, 2024

I had more of a look into it and actually I think the code is correct, more or less. Qt is actually wrong in its SVG renderer - it uses 90 DPI instead of 96 DPI which SVG/CSS mandates. But it should only matter if you have objects in your SVG that use absolute units, e.g. <rect width="10cm">. Can you send the SVG you are cutting?

@bitterjug
Copy link
Author

Thanks Tim and apologies for not replying quicker.
Ive tried with a number of files now, each starting with from
robocut/examples/Registration Marks - A4 H260.svg
and accepting each of Inkscape's offers to resize the image by scaling (or not) and then savinvg as plain svg from innkscape.
Most recent of these is attached. It contains a circle which my printer printed, along
with the registration marks which the Robocut was able to find. And then the Robocut
cut out a different circle that was, when I measured it, bigger by 1.066.

A4 Registration Marks-mcs

I had a look at its text and the only absolute units I can see are at the top level

<svg
   width="210mm"
   height="297mm"
   id="svg2"
   version="1.1"
   style="display:inline"
 ...

I don't know why my printer and the robocutter are interpreting these differently.

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