In previous versions of inkscape (including 1.1) the command line:
inkscape --export-type=svg -l a.eps
correctly (and silently) transformed file "a.eps" to "a.svg"
But with inkscape 1.2 when opening EPS files one additional dialog window now appears with a question:
"Determine page orientation from text direction."
And user must select one of three possible answers ("Disabled", "Page by page" or "All").
But this causes command line to hang. Since this new dialog window does not appear when running inkscape from command line user just does not know what is going on. Is there an option in command line to remove this additional question (simply taking "Disabled" as a default answer)?
Or maybe there is some setting inside inkscape to remove this additional question?
Note: when opening EPS file in inkscape another dialog window entitled
"PDF Import Settings" appears (also in inkscape 1.1), but this one does not make any trouble when running inkscape in command line.
I guess the new dialog window should be made invisible like this one in command line execution.
I've just tested this on Windows 10 / Inkscape 1.2
The "Determine page orientation from text direction." did popup - was able to click 'ok' and it worked ( I'm using the standard command prompt - not powershell )
I also have Ghostscript 9.56.1 for Windows (64 bit) in my path - ( the bin and lib ) folders.
It did require a reboot after installing ghostscript.
On Ubuntu 22 it also works, however I might have had to open an eps in the main gui and close cleanly at least once before running the command line.
But the aim of command line execution is to do some operation without and user interaction. In my case I want to make transformation of EPS file to SVG in command line, so for given EPS file I want to get appropriate SVG file without any additional question waiting for the user response.
Hello @AndrejMrvar, I had the same problem and was solved editing the file /usr/share/inkscape/extensions/eps_input.inx and replace:
<param name="autorotate" type="optiongroup" appearance="combo" gui-text="Determine page orientation from text direction" gui-description="The PS/EPS importer can try to determine the page orientation such that the majority of the text runs left-to-right."> <option value="None">Disabled</option> <option value="PageByPage">Page by page</option> <option value="All">All</option> </param>
In previous versions of inkscape (including 1.1) the command line:
inkscape --export-type=svg -l a.eps
correctly (and silently) transformed file "a.eps" to "a.svg"
But with inkscape 1.2 when opening EPS files one additional dialog window now appears with a question:
"Determine page orientation from text direction."
And user must select one of three possible answers ("Disabled", "Page by page" or "All").
But this causes command line to hang. Since this new dialog window does not appear when running inkscape from command line user just does not know what is going on. Is there an option in command line to remove this additional question (simply taking "Disabled" as a default answer)?
Or maybe there is some setting inside inkscape to remove this additional question?
Note: when opening EPS file in inkscape another dialog window entitled
"PDF Import Settings" appears (also in inkscape 1.1), but this one does not make any trouble when running inkscape in command line.
I guess the new dialog window should be made invisible like this one in command line execution.
Thanks a lot in advance.
Andrej
Can you try this instead ?
inkscape *.eps --actions="export-type:svg;export-do"
Thanks for your reply. Unfortunately with inkscape 1.2 also the command you provided produced the same problem - waiting for additional dialog window.
I've just tested this on Windows 10 / Inkscape 1.2
The "Determine page orientation from text direction." did popup - was able to click 'ok' and it worked ( I'm using the standard command prompt - not powershell )
I also have Ghostscript 9.56.1 for Windows (64 bit) in my path - ( the bin and lib ) folders.
It did require a reboot after installing ghostscript.
On Ubuntu 22 it also works, however I might have had to open an eps in the main gui and close cleanly at least once before running the command line.
But the aim of command line execution is to do some operation without and user interaction. In my case I want to make transformation of EPS file to SVG in command line, so for given EPS file I want to get appropriate SVG file without any additional question waiting for the user response.
In that case, if you are happy with what you are already doing with Inkscape 1.1
For Linux you can use https://inkscape.org/release/inkscape-1.1.2/gnulinux/appimage/dl/
Which is a self contained AppImage version
or for Windows
https://inkscape.org/release/inkscape-1.1/windows/64-bit/compressed-7z/dl/
for a version which will run from a folder
Hello @AndrejMrvar, I had the same problem and was solved editing the file
/usr/share/inkscape/extensions/eps_input.inx
and replace:<param name="autorotate" type="optiongroup" appearance="combo" gui-text="Determine page orientation from text direction"
gui-description="The PS/EPS importer can try to determine the page orientation such that the majority of the text runs left-to-right.">
<option value="None">Disabled</option>
<option value="PageByPage">Page by page</option>
<option value="All">All</option>
</param>
with
<param name="autorotate" type="string" gui-hidden="true">None</param>
@Lito - thanks for the workaround!
You might also want to post your support for a fix here: https://gitlab.com/inkscape/inkscape/-/issues/3524
Indeed: workaround works well. Thanks. But anyway it would be nice this bug to be fixed.
I had exactly the same problem. Thanks @Lito for the workaround, it works fine!
It seems that this problem is fixed now in version1.3.
You do not have to make manual changes in the file: /usr/share/inkscape/extensions/eps_input.inx
Thanks.