Can't get inkscape --export-area to work on windows
I am using inkscape in batch mode to convert SVG images to PNG. On Linux it works perfectly.
On Windows it works ... until I try using --export-area. Whenever I give --export-area parameter, inkscape silently does nothing.
I suspected locale settings but even without fractional parts it does not work...
Has anybody succeeded at using inkscape in such way on win? What can be the trick?
On 11/11/07, Marcin Kasperski <Marcin.Kasperski@...2379...> wrote:
I am using inkscape in batch mode to convert SVG images to PNG. On Linux it works perfectly.
On Windows it works ... until I try using --export-area. Whenever I give --export-area parameter, inkscape silently does nothing.
I suspected locale settings but even without fractional parts it does not work...
Has anybody succeeded at using inkscape in such way on win? What can be the trick?
I pretty sure the problem is that you are using build of inkscape the is compiled as a GUI app not a console app. The way the have the build currently setup to suppress a console dialog showing up while running inkscape in windows.
I'm not sure if there is a current console build floating around. You will most likely have to build it yourself. I think the option is called -mconsole there should be info in the wiki about building with it.
Joshua L. Blocher verbalshadow
--
| Marcin Kasperski | Users typically do not know exactly what | http://mekk.waw.pl | they want and are unable to articulate all | | that they know. (Parnas)
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
On Windows it works ... until I try using --export-area. Whenever I give --export-area parameter, inkscape silently does nothing.
I pretty sure the problem is that you are using build of inkscape the is compiled as a GUI app not a console app.
Well, I am just using 0.45.1 downloaded from the website...
But your diagnosis seems a bit strange to me. Something like
inkscape --export-png destfile.png --export-width 80 --export-height 80 source.svg
*works*. So the general mechanism is OK. Only after I add --export-area it stops working.
(well, there are some small quirks - if I give bad file name there is no error message, just no result, I also had some problems with accessing files from different drive, but those are not crucial here)
I suspect sth stupid - for example maybe I should use something different than : to separate numbers.?
Marcin Kasperski wrote:
inkscape --export-png destfile.png --export-width 80 --export-height 80 source.svg
Try redirecting the silence to a text file:
inkscape --export-png destfile.png --export-width 80 --export-height 80 source.svg > secret_output.txt
Just a quick guess, I expect long gnu options and their values to be separated by "=" --export-width=80.
Aaron Spike
participants (3)
-
Aaron Spike
-
Joshua Blocher
-
Marcin Kasperski