Inkscape.org
Beyond the Basics CommandLine Example for Migration and DPI conversion
  1. #1
    Markus_B Markus_B @Markus_B

    I have thousands of files created in inkscape version 0.48. I want to migrate from inkscape 0.48 to the actual inkscape version 1.2.2. 

    Can someone please give me an commandline example for
    - opening a file created in inkscape version 0.48
    - do the dpi conversion (the dimensions should remain the same, convert-dpi-method=scale-document)
    - save the file in inkscape version 1.2.2

     

  2. #2
    inklinea inklinea @inklinea⛰️

    Are you using Window or Linux ? 

  3. #3
    Markus_B Markus_B @Markus_B

    I'm using Windows.

  4. #4
    inklinea inklinea @inklinea⛰️

    For linux the command line below is enough

    for example:

    Method used to convert pre-0.92 document dpi, if needed: [none|scale-viewbox|scale-document]

    inkscape --actions="convert-dpi-method:scale-document:export-do" * 

    for windows, it seems that the wildcard does not work - at the moment. 

    Sadly you would have to use a powershell script:

    https://inkscape.org/forums/questions/batch-conversion-of-pdf-to-eps-via-command-line/#c45976

    If you want to try to get this done quickly then you can try to use shell mode and feed a file list in:

    Shell mode will exectute the command line without having to open and close Inkscape

    https://inkscape.org/forums/beyond/passing-a-batch-file-to-inkscape-in-shell-mode/#c26165

  5. #5
    Markus_B Markus_B @Markus_B

    Thank you for your answer, but it dosn't work.

    The commandline inkscape.exe --actions="convert-dpi-method:scale-document;export-do" myfile.svg creates a file myfile_out.svg. But the output file is still in inkscape version 0.48 and not scaled.

  6. #6
    inklinea inklinea @inklinea⛰️
    *

    there are 3 options  :) [none|scale-viewbox|scale-document] or you could just leave it blank with no colon

  7. #7
    Markus_B Markus_B @Markus_B

    It doesn't work. The output file is still in version 0.48 (no converison to version 1.2.2)

  8. #8
    inklinea inklinea @inklinea⛰️

    Okay, seems like it is a known issue - apologies.

    https://gitlab.com/inkscape/inbox/-/issues/7415

    There is a link to a sort of workaround further down the page.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics CommandLine Example for Migration and DPI conversion