Welcome to Our Community

Some features disabled for guests. Register Today.

+6 % dimensional error with SVG not at correct size in OpenCam

Discussion in 'CAM' started by Kevl4r, Sep 13, 2021.

  1. Kevl4r

    Kevl4r New
    Builder

    Joined:
    Feb 4, 2021
    Messages:
    25
    Likes Received:
    9
    Hi there,

    I am encountering an issue in Open Cam.

    I have this SVG that has a width of 978 mm, made with Inkscape. (purple rectangle below for the width)

    inkscape_978.png

    To be sure I have rechecked the dimension in other softwares :

    In Blender :
    blender_978.png

    In LightBurn : (See the Width below)
    lightburn_978.png

    In all 3 softwares the width is 978 mm, so I am thinking that the file is correct size wise.

    However when I drop the file in OpenCam I get a width of 917 mm :
    opencam_917.png

    opencam_910_zoomed.png


    Any help would be greatly appreciated.

    Thanks,
    Thomas.
     
  2. Kevl4r

    Kevl4r New
    Builder

    Joined:
    Feb 4, 2021
    Messages:
    25
    Likes Received:
    9
    To be sure I have also started a new project in Inkscape test_855.svg, that is 855 mm of width.
    when I open this file in OpenCam it changes to 801 mm of width.
    opencam_855_test.png
     

    Attached Files:

  3. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,034
    Likes Received:
    4,121
    Play with your DPI settings, or use DXF (proper dimension info in the file): OpenBuilds CAM assumed DPI from the standards for different applications and versions as below. One of the disadvantages of SVGs. Its unitless (pixels * dpi to reconstruct to actual mm/inch) whereas proper CAD formats like DXF does maintain measurement units as well.

    Code:
    if (editor == "inkscape") {
        if (version > 1.0) {
          resol = 96dpi
        } else if (version > 0.91) {
          resol = 90dpi
        } else {
          resol = 96dpi
        }
      } else if (editor == "illustrator") {
        resol = 72dpi
      } else if (editor == "Opentype.js") {
        resol = 57dpi
      } else {
        resol = 96dpi
      }
     
     
  4. Kevl4r

    Kevl4r New
    Builder

    Joined:
    Feb 4, 2021
    Messages:
    25
    Likes Received:
    9
    Thanks Peter,
    changing DPI has solved the issue.

    I have tried on WIN10 / Inkscape 0.92
    I went to Extensions > Document > DPI 90 to 96
    Saved the document
    In OpenCam it has now the correct size.

    On Linux Arch / Inkscape 1.1
    works the same as in windows 10 :
    I went to Extensions > Document > DPI 90 to 96
    Saved the document
    In OpenCam it has now the correct size.
     
    #4 Kevl4r, Sep 13, 2021
    Last edited: Sep 13, 2021
  5. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,034
    Likes Received:
    4,121
    Thats a super old version of Inkscape (2017) - try to stay more up to date to avoid issues. You should be on 1.1.x Download Inkscape 1.1 | Inkscape
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice