Inkscape.org
Using Inkscape with Other Programs Problem with SVG file created in Adobe Illustrator
  1. #1
    Jgt1942 Jgt1942 @Jgt1942
    *

    I'm have a Shaper Origin, which is basically a CNC Router. In the Shaper HUB where other owners place files for projects they created, I download the files for "adjustable height tape board", see the attached ZIP file. In the zip file there are two SVG files. One is 1060mm x 300mm and the other is 1060mm x 150mm. When I open the files in Inkscape or CorelDraw 2019 the size of the drawings are not the size of the files the author created in Adobe Illustrator. The size on the 106mm x 300mm is 795mm x 225mm in Inkscape. What am I doing wrong?

     

     

  2. #2
    Aero Aero @Aero◻️

    Just add pt to svg width and height before opening the Illustrator SVG in other apps. 
    72pt = 25.4mm = 1in

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <svg
       width="72pt"
       height="72pt"
       viewBox="0 0 72 72"
       xmlns="http://www.w3.org/2000/svg">
      <path
         d="M 0,0 H 72 V 72 H 0 Z"
         id="path1" />
    </svg>

     

  3. #3
    Tyler Durden Tyler Durden @TylerDurden

    Inkscape has an extension to correct Illustrator scale SVG documents. Menu: Extensions>Document>Process Illustrator SVG...

     

  4. #4
    Aero Aero @Aero◻️

    Yes, that's exactly what the extension do, adds pt to the svg width and height (if width and height is already there).

    Use the XML-editor to confirm.
     

  5. #5
    Jgt1942 Jgt1942 @Jgt1942

    AH!!!! We have success. Much thanks to all!!!!!

    For me, the little video Tyler included was MOST helpful. I will admit that I had to watch it SEVERAL times to get the full understanding. Following I "think" are the steps (without the video I think I would have had problems even with detailed steps).

    1. Open the Illustrator SVG in Inkscape
    2. In the Menu click > Extensions>Document>Process Illustrator SVG 
    3. When the extension window opens click "Apply" in the bottom right corner, you will see a small empty window pop up.
    4. After the process completes (a few seconds), the small window will close. Now click the Close button.
    5. In the Menu click File > Document Properties. 
    6. In the Document Properties you need to make two changes
    7. Save the modified file.

     

    I confirmed that the updated file also works in CorelDraw 2019.

    I opened the updated and original  SVG files in TextPad and noticed several changes. I suspect that it would be super easy to make a mistake if I manually attempted to update the file. 

    Tyler - How did you get the neat looking Inkscape UI. IMHO, the default is very outdated.

  6. #6
    Aero Aero @Aero◻️

    Did you test the SVG in message #2 (paste into TextPad and save as SVG) to confirm the size is the same in Shaper Origin, CorelDraw 2019 and Inkscape?
     

Inkscape Inkscape.org Inkscape Forum Using Inkscape with Other Programs Problem with SVG file created in Adobe Illustrator