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
785
questions
0
votes
0
answers
22
views
Subprocesses from within an Inkscape extension
I have a couple instances in which I cannot seem to be able to run subprocesses from within an Inkscape extension. One is this case:
def close_dialog(self, name=None):
try:
...
0
votes
1
answer
41
views
Converting EPS to SVG now that inkscape no longer runs without X
It used to be possible run inkscape from the command line as a convenient tool for convert to and from SVG files. Lots of questions here have answers that suggest running inkscape -z with various ...
0
votes
0
answers
42
views
Use same font in inkscape as in latex
I am writing a paper in LaTex and I am using sans-serif font both for text and math. I need to generate png images to illustrate the paper and many images requires text. I like to use inkscape. How ...
0
votes
0
answers
27
views
Non-blocking loop inside an inkscape extension
Is it possible to have a non-blocking loop constantly running from within an Inkscape extension?
I would like - for example - to be able to pass information back and forth to another application every ...
0
votes
0
answers
43
views
Convert svg to png in Python using Inkscape, but nothing works
I want to loop through a folder, take all SVGs and convert them to PNGs, then use OCR to read text from the images.
I know the OCR part of my code works, because I did read text successfully from PNGs....
0
votes
0
answers
9
views
Inkscape overwrites extensions.xml at startup thus it does not take the python interpreter into account
I followed this guide to define a custom python interpreter (my system default python), so I edited /Users/amasson/Library/Application Support/org.inkscape.Inkscape/config/inkscape/preferences.xml ...
0
votes
1
answer
53
views
Get element by ID and change its color in SVG Inkscape
I have a simple drawing I created using Inkscape, this is the Inkscape file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (...
0
votes
1
answer
44
views
Entering File Paths in Inkscape Import Dialog
I want to paste file paths into the Import file dialog, rather than navigating through folders.
I have thousands of images with nearly identical names, and often I have selected an image for a ...
0
votes
0
answers
33
views
How can I use VBA to generate an SVG exact pipeline sketch that is similar to the pipeline KML file by using x and y coordinates of the pipeline
I have a pipeline in google earth that has been exported into excel and has several x and y coordinates. The x and y coordinates are different points on the pipeline. Basically all the x and y ...
0
votes
0
answers
58
views
Errors/artifacts when opening ggplot2 SVG in Inkscape
I have a script which saves creates a simple plot in ggplot2 and saves it as an SVG:
library(ggplot2)
x <- seq(1, 20, length.out = 1000)
y <- sin(x)
df <- data.frame(x=x, y=y)
ggplot(df, ...
0
votes
0
answers
51
views
Inkscape : Error loading EPS file (Ghostscript installed)
on windows 10 v22H2 (build 19045.4291) machine
I've got Inkscape 1.3.2 (091e20e, 2023-11-25, custom)
I've installed Ghostscript 10.03.00
(all from this morning brand new installation)
I've set up ...
0
votes
0
answers
40
views
`undefined symbol: __libc_unwind_link_get, version GLIBC_PRIVATE` when running Python program to save svg as hpgl file using Inkscape
I'm using Inkscape to save an SVG file as an HPGL file. I believe HPGL runs a Python script to do this. However, this Python script is failing with the following error.
Traceback (most recent call ...
0
votes
1
answer
42
views
Inkscape command line - possible to set the antialias option?
How do I set this "Antialias" export option on the inkscape CLI? (this is in the "Export Format Options" window).
I can use the Inkscape cli to convert a SVG to a PNG like this:
...
0
votes
0
answers
50
views
Inkscape not terminating when executed via subprocess in Python
I'm encountering a problem when trying to execute Inkscape via Python's subprocess module. Specifically, I'm attempting to convert a PDF file to SVG using the following command:
import subprocess
...
0
votes
0
answers
55
views
Using Inkscape extensions directly from python (not through GUI)
I working on a python script which generates a big .svg file (A0 size). In order to print on my "small" printer (physically), I have a Inkscape extension (python package) which solves my ...