Questions tagged [inkscape]

Programming questions about scripting the Inkscape vector-graphics application, e.g. using the Inkscape CLI as part of a graphics conversion workflow. Questions about installing the application should go on Super User. Questions about using the application should go on Graphic Design.

Inkscape is a free, cross-platform software vector graphics editor, licensed under the GNU General Public License.

Inkscape uses SVG as its native vector format and uses GIMPs .gpl file format for palettes. Extensions can be written in C, C++, XSLT, Python, or shell scripts. It has a command-line interface which is useful for processing vector collections such as PDFs.

Inkscape supports many advanced SVG features (markers, clones, alpha blending, etc.) and great care is taken in designing a streamlined interface. It is very easy to edit nodes, perform complex path operations, trace bitmaps and much more. We also aim to maintain a thriving user and developer community by using open, community-oriented development.

A comprehensive guide to Inkscape can be found here.

773 questions
9
votes
1 answer

ProcessBuilder vs Runtime.exec()

I'm trying to create a frontend app in Java to handle batch SVG conversions using Inkscape's command line feature. I'm taking and updating the code from https://sourceforge.net/projects/conversionsvg/. The way the original developer handled calling…
9
votes
1 answer

Add css to svg with inkscape

I use Inkscape for creating svg images and want to know how to use not embedded css rules. For example draw rectangle in XML-editor add class attribute as class="rect1" to svg:rect object How to add css like .rect1 { fill:#ffef00; …
tehkonst
  • 185
  • 2
  • 8
9
votes
4 answers

How to use inkscape command line interface?

I'm trying to use the inkscape command line interface. I have windows 7. First I open up command line, and I run these: cd "C:\Program Files\Inkscape-0.48" inkscape "C:\Users\me\Desktop\Pic\Class_UML.png"…
omega
  • 40,311
  • 81
  • 251
  • 474
9
votes
3 answers

Change color in svg file through command line (inkscape)

I have an .svg file with only one color. I want to change this color to another and export it through command line. (I have to do it about 100 times, so doing it by hand doesn't work.) I use Inkscape at the moment. I am able to change the background…
Balazs Sipos
  • 167
  • 3
  • 10
9
votes
5 answers

R & Inkscape: text labels in SVG graphics exported from R did not recognized as a text in Inkscape

I constructed dendrogram in R with the code: data(iris) aver<-sapply(iris[,-5],function(x) by(x,iris$Species,mean)) matrix<-dist(aver) clust<-hclust((matrix),"ave") clust$labels<-row.names(aver) plot(as.dendrogram(clust)) I wanted to save the…
Newbie_R
  • 655
  • 7
  • 22
9
votes
1 answer

Calling Inkscape in Python

Possible Duplicate: Calling an external command in Python I am trying to convert SVG files to PDFs in Python. I want to use Inkscape for this. How can I call Inkscape in Python ?
medusalith
  • 151
  • 1
  • 3
8
votes
3 answers

Inkscape command line programming

I'd like to be able to derive new images from a pre-existing image from the command line. To do that, I'd turn on/off specific layers that have portions of the image and then save the resulting image to a file. However, while I can see a number of…
Brian
  • 372
  • 1
  • 4
  • 12
8
votes
2 answers

Changing the Python interpreter for Inkscape

I keep getting errors when using Inkscape that seem to imply that a python 2 vs 3 expectation isn't being met, though I have both of them installed. For instance, when I try to make a new document generated from a template, I get, Traceback (most…
pretzlstyle
  • 2,774
  • 5
  • 23
  • 40
8
votes
3 answers

Inkscape: round coordinates

Is there a command in Inkscape to round coordinates of a path to the closest integer value. For instance, to replace this path: m 0,0 261.98828,-890.8828 -299.999999,-900 2593.486319,54.4063 -253.9941,850.09565 264.3594,870.83005 z by this: m 0,0…
DevonDahon
  • 7,460
  • 6
  • 69
  • 114
8
votes
2 answers

using inkscape svg in html on web

I'm using inkscape .91 and would like to create an svg which I can use on the web. I'm a newbie. I can export it in png - no problem but have no idea how to include it in the web as SVG which, since I want a responsive site, is quite important. …
LenB
  • 1,126
  • 2
  • 14
  • 31
8
votes
2 answers

Run inkscape in PHP

I need to run inkscape in PHP so I can convert an svg image to PDF. However every time I try: //some PHP code system("inkscape -z --file=svg.svg --export-pdf=pdf.pdf"); //more code I get no new file and I get this in the apache erro…
petermlm
  • 930
  • 4
  • 12
  • 27
8
votes
1 answer

Inkscape: How to change starting node?

I am using inkscape to create svg. Later I am going animate drawing that svg path in a website using vivus.js. Problem is I have no control over the starting node of the path in inkscape. To make myself clear, suppose I want to animate drawing of…
8
votes
1 answer

Is there a way to refresh extensions in Inkscape

Hope I am asking this question in the right area, I am developing a couple of extensions for Inkscape and I was wondering if there is a way to refresh the extensions like GIMP has for script-fu? I have searched the web and documentation on Inkscape…
Andy Braham
  • 9,594
  • 4
  • 48
  • 56
8
votes
1 answer

Get absolute coordinates for rotation of Inkscape SVG elements

I am using wxPython to prototype some display interfaces for a project that will eventually become an embedded design. Since we are iterating with a graphics designer, it is much easier to let them work in a WYSIWYG editor like Inkscape than…
superlou
  • 679
  • 1
  • 8
  • 21
8
votes
6 answers

Inkscape screws up EPS files

I have been trying to use Inkscape to prepare artwork graphics for my scientific papers. I use LaTeX, and I need my figures to be prepared as high-quality Encapsulated PostScript (EPS) images. The work order is as follows. First, I plot parts of my…
Benkevitch
  • 415
  • 1
  • 5
  • 13