dose inkscape have a batch/command line mode?
what I want to do is: start a new A4 document import a SVG file rotate the object resize the object to fit on A4 page with 2 centimeter boarder save a new SVG file and save a hpgl file
-- tom_a_sparks "It's a nerdy thing I like to do" Please use ISO approved file formats excluding Office Open XML - http://www.gnu.org/philosophy/no-word-attachments.html 3 x (x)Ubuntu 10.04, Amiga A1200 WB 3.1, UAE AF 2006 WB 3.X, Sam440 AOS 4.1.2 Roland DXY-1300 pen plotter, Cuttok DC330 cutter/pen plotter Wanted: RiscOS system, GEOS system (C64/C128), Atari ST, Apple Macintosh (68k/PPC only)
On 14/09/2011 02:57, Tom Sparks wrote:
dose inkscape have a batch/command line mode?
It pretends to have one, but I have never managed to get it to work. The last I heard it was buggy and not maintained. This is a pity, because the way it promised to work looked quite powerful.
\d
----- Original Message -----
From: donn <donn.ingle@...155...> To: inkscape-user@lists.sourceforge.net Cc: Sent: Wednesday, 14 September 2011 5:36 PM Subject: Re: [Inkscape-user] batch mode / command line mode
On 14/09/2011 02:57, Tom Sparks wrote:
dose inkscape have a batch/command line mode?
It pretends to have one, but I have never managed to get it to work. The last I heard it was buggy and not maintained. This is a pity, because the way it promised to work looked quite powerful.
thanks :( so is the a command line program that can do what I want? inkscape screen refreshes to slowly to be useable when resizing TSP art [1]
\d
[1] http://www.cgl.uwaterloo.ca/~csk/projects/tsp/
-- tom_a_sparks "It's a nerdy thing I like to do" Please use ISO approved file formats excluding Office Open XML - http://www.gnu.org/philosophy/no-word-attachments.html 3 x (x)Ubuntu 10.04, Amiga A1200 WB 3.1, UAE AF 2006 WB 3.X, Sam440 AOS 4.1.2 Roland DXY-1300 pen plotter, Cuttok DC330 cutter/pen plotter Wanted: RiscOS system, GEOS system (C64/C128), Atari ST, Apple Macintosh (68k/PPC only)
On 15/09/2011 10:47, Tom Sparks wrote:
so is the a command line program that can do what I want?
Well ... Ask around some more, there are surprising ways to mangle svg.
One approach would be to use Python and libRSVG and Cairo to open svg files, render them, rotate/scale them as needed and then play out a new SVG file.
Another would be to look at what parts of the SVG file you can mess with - in a text editor - there are transforms that control the rotation and scale. There's a bounding box thing (not sure) -- but you may be able to add a transform to the top of the XML tree and have your entire SVG file fit your needs.
Not sure what hpgl files are. Whatever, have a look for other command-line apps that can write them out.
Do experiment a little with Inks' command line - not everything is b0rked. You might get lucky with the save as.
\d
Tom Sparks schrieb:
so is the a command line program that can do what I want? inkscape screen refreshes to slowly to be useable when resizing TSP art [1]
Maybe if you compare a few of the SVGs before and after with diff you can find out how to change the SVG text directly.
On Wed, 14 Sep 2011 09:36:15 +0200 donn <donn.ingle@...155...> wrote:
On 14/09/2011 02:57, Tom Sparks wrote:
dose inkscape have a batch/command line mode?
It pretends to have one, but I have never managed to get it to work. The last I heard it was buggy and not maintained. This is a pity, because the way it promised to work looked quite powerful.
I've done a lot of very productive work from the command line using Inkscape as an SVG rendering tool (to both bitmaps and PDF), so I wouldn't discount it without giving it a shot. Simple text insertion into SVG templates lets you do all kinds of things.
I haven't used the --shell and --verb related commands, so perhaps there are problems with those, but for the rest of the commands shown by `inkscape --help`, I suspect they mostly do just what they should.
Cheers -Terry
participants (4)
-
donn
-
Lars Behrens
-
Terry Brown
-
Tom Sparks