Code: Select all
inkscape 12-WINGS-01.svg --export-png=result.png --export-id=Layer_1
This works exactly as intended. The resulting PNG contains the cropped layer "Layer_1". The problem arises when I try to issue the command from the tutorial which flips the layer vertically:
Code: Select all
inkscape --select=Layer_1 --verb ObjectFlipVertically --verb FileSave --verb FileClose 12-WINGS-01.svg
After executing this the input file remains intact with Layer_1 remaining unflipped. I tried something simpler:
Code: Select all
inkscape --verb EditClearAll --verb FileSave --verb FileClose 12-WINGS-01.svg
Still no change. Looks like I'm using the --verb option not the way I should or missing something.
Another issue I'm facing is I can't output the exported image to STDOUT. Tried the following:
Code: Select all
inkscape --print="> out.png" 12-WINGS-01.svg
...and...
Code: Select all
inkscape --print=">&1" 12-WINGS-01.svg
Both returning:
Code: Select all
Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
** Message: Error: Inkscape encountered an internal error and will close now.
Segmentation fault (core dumped)
Please help!