On Fri, 2007-06-08 at 21:39 -0700, Mike Bee wrote:
So far, I've only been able to import the bitmap and select it using the following command line entry:
"C:(full path to inkscape)\inkscape.exe" --verb=FileImport "C:(full path)\testimg.png" --verb=EditSelectAll verb=SelectionTrace
Running this command causes the inkscape gui to start, import the png, and select it. However, it won't trace the image. All it does it open the "trace bitmap" dialog. Another weird thing is that the "select file to import" dialog remains open even after the image import is complete. Is that normal, and how do I close it via the command line?
Well, the reason here is because it's not doing what you're expecting. Unfortunately there isn't anyway to pass parameters to verbs. So, the command line is getting broken into two sets of commands.
One: "c:(full path)\testimg.png"
Two: --verb=FileImport --verb=EditSelectAll --verb=SelectionTrace
So Inkscape is opening the file you've specified -- and the default way to open PNGs is to put them into an SVG wrapper similar to import. Then, after it is your document, the verb FileImport is being called. So, things should behave the same without the FileImport verb, except that the dialog won't be shown.
--Ted