Author Topic: Inkscape 0.92 wrong dimensions on generated gcode with laser plugin  (Read 37037 times)

December 14, 2017, 01:48:18 PM
Reply #25

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

December 14, 2017, 09:48:28 PM
Reply #26

MiEquiZ

  • Sr. Newbie

  • Offline
  • **

  • 3
Yes, I want my units to be mm. I did file bug reports on this everywhere I could imagine. May be I am not understanding something but on testing this is what I get.

Directly from the fresh install of 0.92.2:
inkscape92-just_installed.png
*inkscape92-just_installed.png
(145.11 kB . 1923x1080)
(viewed 919 times)



If I use brynn suggestion (scale = 3.77953
inkscape92-brynn_scale.png
*inkscape92-brynn_scale.png
(155.32 kB . 1921x1080)
(viewed 900 times)


And this is if I use scale=1 and my modification to the gcodetools.py
inkscape92-brynn_my_MOD_and_scale.png
*inkscape92-brynn_my_MOD_and_scale.png
(164.76 kB . 1921x1080)
(viewed 850 times)



December 15, 2017, 05:36:45 PM
Reply #27

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
If you use 3,54330 (which can be gotten by adapting the px template for the 90 to 96 dpi change), then at least the x coordinate will be correct... But not the y, lol...

December 29, 2017, 10:21:33 AM
Reply #28

dplund

  • Newbie

  • Offline
  • *

  • 1
Thanks Shockster for the update to gcodetools, and thanks MiEquiZ for your digging. The update to gcodetools got things working properly for me.
  • 0.92
  • OS X 10.9.5

January 16, 2018, 05:18:43 PM
Reply #29

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Shockster, I'd like to get your fix into the next Inkscape version. Would you like to do a merge request at gitlab yourself (let me know if you need help with that), or should I make one?

February 10, 2018, 04:56:19 PM
Reply #30

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Shockster, your changes have been incorporated into (the development versions for) Inkscape 0.92.3 and also into Inkscape 0.93.
See https://gitlab.com/inkscape/inkscape/merge_requests/196#note_58529769
Thank you for having them made available!

March 09, 2018, 10:38:17 AM
Reply #31

herrdeh

  • Sr. Newbie

  • Offline
  • **

  • 2
I seem to have come a similar problem, for that reason I'm joining in here.

I imported some SVG to FreeCAD and found that there are quite some differences in measures. This problem does not occur in inkscape 0.91, but it does in my Inkscape 0.92.2 (5c3e80d, 2017-08-06) with ubuntu 18pre and as well with 0.92.1 r15371 with debian 9.

Height results slightly bigger (apx 107%), Width a little smaller (~ 98%).

What shall I do?
  • 0.92.2
  • ubuntu 18pre

March 10, 2018, 05:43:13 AM
Reply #32

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
First, this is most definitely a bug in FreeCAD - because you're loading the SVG file itself, and the SVG files are valid (unless you intentionally broke them, which I don't think). Only programs with less advanced SVG import sometimes have issues with them.

Does the drawing have the correct dimensions in LibreCAD, for example?

Did you select any conversion option when you first opened the file with Inkscape 0.92? Which one?
What happens when you use the extension (available in the 'document' category of extensions submenu) that converts files back from 96 dpi to 90 dpi?

Additionally, you can wait for next week, when the next version with some fixes in regards to dxf export - maybe that's all you'd need?

And lastly, you could share an SVG file.

April 11, 2018, 11:40:31 PM
Reply #33

herrdeh

  • Sr. Newbie

  • Offline
  • **

  • 2
Sorry for my late reply, but it took some time to get things clear. There still is some dispute at FreeCAD about this issue, but I'm optimistic that it will be solved within FreeCAD.
Thanks for your time.

And thank you to everybody involved for inkscape - one of my top favourite programmes at all!

Cheers, Wolf
  • 0.92.2
  • ubuntu 18pre