Data passed via stdin gives warning and defaults to SVG input - possible to silence or specify type?
Steps to reproduce:
- Invoke
cat foo.svg | inkscape -z --file - --export-dpi=300 --export-pdf=foo.pdf
for some Inkscape SVGfoo.svg
. - Watch the warning appear.
What happened?
I get a warning in my terminal, which is worded something like: ** (inkscape.exe:11724): WARNING **: 15:11:57.000: Format autodetect failed. This file is being opened as SVG.
The reason for the .exe
there is that I'm in an MSYS2 shell on Windows 10. The PDF generates fine, but the warning keeps showing up and I have no way to silence it, or specify to Inkscape that I am, indeed, passing it an (Inkscape) SVG to render via stdin.
What should have happened?
This warning shouldn't show up. Either an option to silence it, or perhaps (better) a way to indicate to Inkscape 'Hey Inkscape, even though I'm giving you data via stdin, it's an Inkscape SVG. Trust me, I'm a professional.' would be good. My use case isn't as trivial as this, so simply specifying the file directly is not an option (I have several processing steps between the file and the stuff I want rendered).
Inkscape Version and Operating System:
- Inkscape Version: Inkscape 0.92.4 5da689c313, 2019-01-14
- Operating System: Windows 10 Enterprise
- Operating System version: 1703