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
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.
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
Are you using Window or Linux ?
I'm using Windows.
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
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 filemyfile_out.svg
. But the output file is still in inkscape version 0.48 and not scaled.there are 3 options :) [none|scale-viewbox|scale-document] or you could just leave it blank with no colon
It doesn't work. The output file is still in version 0.48 (no converison to version 1.2.2)
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.