Inkscape.org
Beginners' Questions Changing default .svg ppi for importing files
  1. #1
    mmeilleur mmeilleur @mmeilleur

    New user, using Inkscape to control an AxiDraw A3. I'm generating .svg files with code in another application and importing them into InkScape to render with the plotter, but I'm also seeing the problem with .svg files exported from Illustrator for print.

    The problem I'm having is this: that Inkscape insists on assuming that my files are coming in with units set to pixels, not DTP, and at 96dpi instead of 72dpi, so it simply reduces the size of every object and coordinate by 25%.

    I've tried changing the default import resolution in Preferences > Imported Images to 72dpi with no success. Of course I can rescale with simple objects, but I'm hoping to be plotting some pretty complex stuff and it seems like it should be possible to set Inkscape's defaults to prevent the resizing in the first place.

  2. #2
    Tyler Durden Tyler Durden @TylerDurden
    mmeilleur

    The problem I'm having is this: that Inkscape insists on assuming that my files are coming in with units set to pixels, not DTP, and at 96dpi instead of 72dpi, so it simply reduces the size of every object and coordinate by 25%.

    Inkscape is a native SVG editor, and will follow the SVG standard of 96ppi in most cases. Other program exports... it's pot-luck.

    Scale can be controlled using the Preferences dialog on a case by case basis; no way to predict what any externally generated file might be.

     

     

     

  3. #3
    Aero Aero @Aero◻️

    Simply edit the configuration file units.xml located in \inkscape\share\inkscape\ui in order change this from 96 to 72.

     

    Css Pixels 72
  4. #4
    mmeilleur mmeilleur @mmeilleur

    Sorry—should have noted that I'm using MacOS 10.15.

    Library > Application Support > org.inkscape.Inkscape > Share only contains a recently-used.xbel file, and org.inkscape.Inkscape > config > inkscape > ui contains no files. Can I just create a units.xml file there, or should I be looking somewhere else?

  5. #5
    Aero Aero @Aero◻️

    I'm on Windows 10. I don't know how to find this file on Mac. As you can see, it's included in the .dmg.

     

    Mac Dmg Units
Inkscape Inkscape.org Inkscape Forum Beginners' Questions Changing default .svg ppi for importing files