-
Notifications
You must be signed in to change notification settings - Fork 28
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
Comments
Unfortunately I've never actually used the registration marks feature.
Markus Schulz ***@***.***) wrote that bit.
I did have a quick look though. It does seem like 90 dpi is hard-coded in
Qt in some way, based on this comment and the linked code:
// See
//
https://code.woboq.org/qt5/qtsvg/src/svg/qsvghandler.cpp.html#_ZL15convertToPixelsdbN11QSvgHandler10LengthTypeE
// The default size is derived from the width="" height="" svg attribute
tags
// assuming 90 DPI.
QSizeF mediaSize(render.widthMm, render.heightMm);
It's also hard-coded in my code in `PathPaintDevice.h`
double pixelsPerMm = 90.0 / 25.4
You could try changing that to 96.0... but I suspect it has to be 90.0 to
match what Qt defaults to. This stuff is kind of complicated and I can't
remember the exact details. Are you using `master` or `develop`?
…On Sat, 13 Jan 2024 at 17:55, Mark Skipper ***@***.***> wrote:
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?
—
Reply to this email directly, view it on GitHub
<#9>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC4ACTGFJAIN3MKWYMRULLYOLDCBAVCNFSM6AAAAABBZPBOZOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA4DANBRGQ4DGMA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
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. |
Thanks Tim and apologies for not replying quicker. I had a look at its text and the only absolute units I can see are at the top level
I don't know why my printer and the robocutter are interpreting these differently. |
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?
The text was updated successfully, but these errors were encountered: