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
7
votes
2 answers

Error trying to add SVG image to xcode assets

I have converted an image from PNG to SVG using the vectorizer.io website. The SVG image looks fine when viewed with the Chrome browser and in GIMP. But when I try to add it to the asset folder in xcode (Version 11.4.1) I get this error ... The SVG…
Melchester
  • 421
  • 3
  • 18
7
votes
3 answers

Inkscape: persistent alignment

I know how to use alignment/distribution with inkscape. But they only work once. It does not persist. Example: As soon as I change the size of one of the objects, and the alignment gets lost. Is there a way to persist the alignment? Example: If I…
guettli
  • 25,042
  • 81
  • 346
  • 663
7
votes
2 answers

how to import svg code into Inkscape

is it possible to import code into Inkscape and save it as a .svg file? i want to important this code and save it as a svg file:
Jack Maessen
  • 1,780
  • 4
  • 19
  • 51
7
votes
4 answers

Inkscape "PDF + Latex" export

I'm using inkscape to produce vector figures, save them in SVG format to export them later as "PDF + Latex" much in the vein of TUG inkscape+pdflatex guide. Trying to produce a simple figure, however, turns out to be extremely frustating. The first…
Arlex Marín
  • 81
  • 1
  • 1
  • 4
7
votes
1 answer

create text inside a rectangle using inkscape

I've put some text inside a rectangle using inkscape so the tree is like text.... The problem is, I can't see the text. I've tried fiddling with the opacity of the rect to no avail. There should be a way of doing…
mr calendar
  • 945
  • 5
  • 11
  • 21
7
votes
1 answer

How to use CMYK colors in Inkscape?

I am using Inkscape 0.91. I have created an artwork using Inkscape and converted it into PDF. While taking print copy I could not get the exact color used. How to make it CMYK mode? Thanks in advance.
user2118784
  • 442
  • 1
  • 6
  • 18
7
votes
1 answer

inkscape command line svg to png - set both width and dpi

I want to convert a svg to a png with the inkscape command line tool. Despite of what is specified in the svg i want to set both the width of the resulting png and the dpi to be used. From the inkscape docu it seems this is not possible: -w WIDTH,…
dorjeduck
  • 7,624
  • 11
  • 52
  • 66
7
votes
1 answer

How can I programatically convert SVG files containing text to PDF files (specifically on CentOS 5.3 x86_64)?

I would like to programatically convert SVG files to PDF files. However, the SVG files contain text that must be searchable in the generated PDF files. Also, it has to work on Red Hat Enterprise Linux 5.3 or CentOS 5.3 for the x86_64 architecture.…
Christopher Bottoms
  • 11,218
  • 8
  • 50
  • 99
7
votes
3 answers

R simplify heatmap to pdf

I want to plot a simplified heatmap that is not so difficult to edit with the scalar vector graphics program I am using (inkscape). The original heatmap as produced below contains lots of rectangles, and I wonder if they could be merged together in…
719016
  • 9,922
  • 20
  • 85
  • 158
7
votes
3 answers

Illustrator SVG export not working (namespace prefix inkscape not defined)

I'm new to the world of vector editing. I'm trying to export a .SVG file from a .AI file. However, when I export it, I get the following error in the generated file: Error on line 57 at column 354: Namespace prefix inkscape for cy on namedview is…
17andLearning
  • 477
  • 1
  • 8
  • 19
7
votes
2 answers

How to convert an SVG string into a jpg with Inkscape

After having spent two days attempting to rasterize jpeg's from SVG strings using ImageMagick I have finally given up. Although I managed to get the actual conversion working fine it seems Imagemagick cannot properly convert the transform/rotate…
gordyr
  • 6,078
  • 14
  • 65
  • 123
7
votes
1 answer

How to get coordinates of a path from svg file into R

May be it is a silly question but I don't have a lot of experience doing this. I need to get the coordinates from a polygon to create a contour in R. It is a complex polygon of about 1000 points so to input the coordinates manually is crazy. Also I…
Eduardo Garza
  • 87
  • 1
  • 8
6
votes
0 answers

Inkscape - Change SVG color using command line tool

Is it possible to change color of an SVG file to a single color, using inkscape on the command line? For example, I have an SVG document with different colors like '#ffffff', '#004883', '#e32934'. So with a command line tool is it possible to change…
max
  • 347
  • 3
  • 14
6
votes
1 answer

Combine -tags or make out of -tags

Using SVG via Inkscape: I have several -tags, which are reusing the same (from the defs), while transforming it. Now I want to create a shape () by combining some "transformed lines" and connecting the end-points. Inkscape has a…
feeela
  • 29,399
  • 7
  • 59
  • 71
6
votes
1 answer

How to save SVG in Inkscape with viewBox?

How to save SVG file in Inkscape with viewbox parameter? In SVG file with width="50" height="62.5" should be this: viewBox="0 0 50 62.5" QGIS can not use SVG without viewBox correctly.