Skip to main content

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.

0 votes
0 answers
23 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: ...
simone's user avatar
  • 5,045
0 votes
1 answer
52 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 ...
Richard Smith's user avatar
0 votes
0 answers
53 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 ...
Brasil's user avatar
  • 141
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 ...
simone's user avatar
  • 5,045
0 votes
0 answers
48 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....
Azurespot's user avatar
  • 3,114
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 ...
arthur.sw's user avatar
  • 11.5k
0 votes
1 answer
56 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 (...
user171780's user avatar
  • 2,858
0 votes
1 answer
50 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 ...
Peter's user avatar
  • 1
0 votes
0 answers
34 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 ...
user24587652's user avatar
0 votes
0 answers
70 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, ...
Tom's user avatar
  • 8,690
0 votes
0 answers
55 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 ...
Ben's user avatar
  • 13
0 votes
0 answers
45 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 ...
twitu's user avatar
  • 615
0 votes
1 answer
52 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: ...
dtbaker's user avatar
  • 4,889
0 votes
0 answers
53 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 ...
Daniel Hernandez's user avatar
0 votes
0 answers
65 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 ...
Anna Stray Rongve's user avatar
0 votes
1 answer
95 views

How to fix 4 arc issue when converting pdf to dxf using inkscape?

I'm trying to convert a pdf file to a dxf file using the inkscape command. I converted a pdf file to a svg file first and converted this to dxf file. This is the inkscape command I've used: inkscape ...
skaihugger's user avatar
0 votes
0 answers
20 views

Are SVG user units the values used in the SVG XML? [duplicate]

It's a bit hard to grasp the user unit (aka SVG user units) concept at first, though many resources try to explain this. For my purpose, I simply need to know the following. Consider this bit of SVG ...
Mads Skjern's user avatar
  • 5,790
0 votes
1 answer
322 views

Converting pdf to dxf using pstoedit - How to fix the double border issue?

I'm currently using pstoedit to convert pdf files to dxf files. This is the pstoedit command I'm using: pstoedit -f "dxf: -ctl -mm" input.pdf output.dxf I get a file output.dxf from a file ...
skaihugger's user avatar
0 votes
0 answers
39 views

Issues with exporting SVG from blender with overlapping faces

i'm having issues with SVG Freestyle Export from blender. 3D Scene in blender Fills issues I have a problem regarding strokes that do not stop when they intersect with the face of another object. I ...
InvaFPV's user avatar
0 votes
0 answers
48 views

Invoke rendering of path effects in Inkscape via command line

I have an Inkscape SVG file with a certain layout. I would like to be able to change text within the SVG and export it to PNG via commandline. While I am able to change the text in the SVG itself, it ...
stckvrflw41648's user avatar
1 vote
1 answer
29 views

Automatically close extension dialog in inkscape

Inkscape extension dialog boxes defined with inx have predefined "Apply" and "Close" buttons. After clicking "Apply" and doing whatever work the dialog box controls the ...
Rsevero's user avatar
  • 187
0 votes
0 answers
87 views

Converting svg to png while text wrapping using `shape-inside` text property

I have an svg I made in Inkscape that uses the shape-inside text property to wrap text. When I output it to png using cairosvg, svglib, or wand the text bleeds off the image because shape-inside is ...
Oliver Barnum's user avatar
0 votes
0 answers
174 views

can't export .pdf_tex file in inkscape 1.3

when i want to export a svg file to .pdf and .pdf_tex file. I do Save As-PDF and select Omit text in PDF and create latex file, Finaly, i can't get the .pdf_tex file. But it works on my WSL-Inkscape ...
zongpingding's user avatar
0 votes
0 answers
92 views

How to migrate an SVG graphics into a gliffy graphics not as embedded picture

In my current project I generated a bunch of SVG graphics from an Enterprise Architect model. Now, the customer wants to edit these graphics right in the tool Gliffy, being an addon in Confluence. Up ...
Aleph0's user avatar
  • 5,954
-1 votes
1 answer
128 views

Receiving error when using Next generator extension in Inkscape

I installed the next generator extension in Inkscape following directions of unzipping the file and placing it in the Extension file. When I run it i receive this error Cannot merge PDF files, please ...
jack's user avatar
  • 328
0 votes
0 answers
40 views

Prevent Inkscape from making a style attribute while using the Fill tool

I am using dashboarding software where I can embed svg images and fill them in automatically. For this a fill has to be assigned, and the dashboard studio changes that fill value dynamically. Howeve, ...
user1261104's user avatar
1 vote
0 answers
123 views

Why is feDropShadow poorly supported in non-browsers and leads to things disappear?

The following happens to me on a regular basis when trying to write SVGs manually. I perform a web search for "svg drop shadow", and amongst the first hits is the MDN example on ...
bluenote10's user avatar
  • 25.6k
0 votes
1 answer
45 views

Is it possible to delete only the shapes that have only a fill an no stroke?

I would like to keep only the shapes that have no fill on this map : https://commons.wikimedia.org/wiki/File:Antarctica_in_the_World_(yellow).svg Obviously, I don't want to remove all the other ones ...
oli_vi_er's user avatar
  • 147
0 votes
0 answers
51 views

ImageMagick SVG convert to PNG fails to delegate in debug mode only

I have the latest ImageMagick and InkScape installed on Windows 10. Converting SVG source images sourced from FontAwesome Free works fine in Visual Studio 2022 Release mode. In Debug mode writing to a ...
Hans Malherbe's user avatar
1 vote
1 answer
251 views

Inkscape cli: select all text objects filled with a specific color and align all to bottom

I have a svg file that contains many text objects filled with the color 0070c0. It contains also other objects. I would like, via CLI, to select only those text objects with that fill, and then ...
aborruso's user avatar
  • 5,485
0 votes
0 answers
54 views

Inkscape measure tool gives unexpected results

I'm working with Inkscape 1.1 on an iMac running 10.14.6. I'm working on making a grid that has 4 rows and 7 columns. Each cell is 39mm X 39mm with a 5.3 mm line between the rows. I've gotten the ...
Greg W's user avatar
  • 53
0 votes
1 answer
387 views

Converting a SVG file to a PDF or JPG with the embedded base64 CSS fonts

I have a bunch of .svgz files I need to convert to PDF, or, if that's not possible, to JPG and then to PDF. All these files use custom fonts that are embedded in the file, using @font-face base64, ...
SaltyIsaac's user avatar
1 vote
1 answer
371 views

Cant save as xaml in Inkscape

I was Trying to Save an SVG in XAML format to use it in my C#-WPF Project, but since today the "Microsoft xaml" option isn´t showing up in the "save as" window enter image ...
Captain Bubble's user avatar
0 votes
0 answers
18 views

The elements of a drawing on a single page is exported as a multi-page PDF in Inkscape Version 1.3

I drew a few elements (actually, lines) in inkscape and added some 'text' elements in-between. When the did 'Save a copy' as PDF (with text in separate file by choosing 'Omit Text in PDF and create ...
Sunil Sangwal's user avatar
0 votes
0 answers
157 views

Is there a way to call Inkscape from the CLI to crop a SVG file, but maintain the original bounding box?

I have been using the following in my code (I'm using powershell): & "C:\BIN\Inkscape\bin\inkscape.exe" -o $NewFullFilePath -D $NewFullFilePath | Out-Null This works fantastically, but ...
fmotion1's user avatar
  • 433
0 votes
1 answer
75 views

Filling areas that has same number in inkscape

I want to color all the numbered areas in a picture with a specific color. For example, I want to fill everything marked with number 3 in red. Is this possible? If I need to provide more details, I'm ...
mfc's user avatar
  • 15
1 vote
1 answer
440 views

SVG is completely black when converting to PDF or opening with Inkscape

I created a simple image in SVG. When i open it in Inkscape every information about the color is lost. Why is that? This is part of my code: <svg version="1.1" width="300px" ...
mowi12's user avatar
  • 13
0 votes
0 answers
203 views

AxiDraw Penplotter configuration in Python not working

A while ago I bought this AxiDraw Penplotter: However, I cannot manage to get it draw in its full area. I searched in Reddit and found out that people with similar problems solved it changing the ...
lonexD's user avatar
  • 9
0 votes
0 answers
107 views

Copy files to inkscape extenstion folder doesn't work

I copy file extension to C:\Users\ganuo\AppData\Roaming\inkscape\extensions and restart Inkscape but I don't see my script showing up in the Extensions menu bar. Clicking on Manage Extensions I get ...
Ooker's user avatar
  • 2,625
0 votes
0 answers
132 views

Troubles with gtk

I am having issues with Inkscape not rendering text correctly, and illustrations are not showing unless I slightly adjust the borders on my Windows machine. To troubleshoot, I started Inkscape from ...
hjmnzs's user avatar
  • 131
1 vote
0 answers
31 views

Updated inkscape version stooped running my code

This is my code using for converting svg to png and return it on browser. svgchart = chart_pygal.render() inkscape_process = subprocess.Popen(['inkscape', '-z', '-e', '-', '-'], stdin=...
Faizan Naeem's user avatar
0 votes
1 answer
271 views

How to remove all transforms from text elements in an SVG with Inkscape

How do I remove all transform from text elements in an SVG while keeping the text elements and the font size in place? This question is similar to Removing transforms in SVG files, but this question ...
user2690527's user avatar
  • 1,821
1 vote
0 answers
48 views

Is there a way to import a PDF into Inkscape with characters from the unicode supplementary planes?

When a PDF is imported into Inkscape, any Unicode code point with more than 4 digits has the leading digits removed and displays as a 4 digit code point. For example, a math italic capital B (𝐵) is U+...
Joel's user avatar
  • 11
0 votes
1 answer
401 views

Applying translate transforms in SVG files from `<image>` or `<use>` elements

So basically I want to convert this: transform="translate(...)" into x/y coordinates. On an <image> element Additional info: Similar but more specific than this question: Removing ...
Felix Olszewski's user avatar
0 votes
0 answers
2k views

Inkscape font != latex font

I am using inkscape to create my eps figures to be included in my latex document. Whenever an equation or a text is needed I used the Inkscape TexText. However, I still notice a difference between ...
Wallflower's user avatar
2 votes
1 answer
502 views

Python : Convert svg to png without antialiasing

I'm triying to convert a svg to png in python, but I don't want any compression and antialiasing. I've tried to use inkscape with subprocess but i can't find the arguments to tell inkscape that i don'...
Gaspar GUILLEMAIN's user avatar
0 votes
0 answers
314 views

How do I convert from stroke to path and keep dots with inkscape?

I have these svg files that I need to upload to fontello to convert them to fonts, some of the icons work by default, some need some tweaking. Our assets are compiled and updated via CI so I've ...
Nicos Karalis's user avatar
0 votes
1 answer
73 views

Why will my python paths mess up my package import?

I installed pyautogui. I try to run this program. import pyautogui print(pyautogui.size()) It doesnt work with: enter image description here This is already strange to me as no2.py is not in .venv so ...
Afro Dieter's user avatar
0 votes
1 answer
314 views

How do I add unique, colored symbols to text in Inkscape?

I'm designing a card for a board game. I want a heart symbol to appear next to every mention of the word "health". Such as "<3 Health" but instead of text it's a unique path/...
Oliver Barnum's user avatar
0 votes
1 answer
110 views

How do I batch-simplify (one after the other) paths of a collection of (very large) SVG files, preferably with a command-line tool on UNIX?

I have perhaps two thousand SVG files, obtained as a result of scanning a number of brochures to greyscale JPG, then batch-binarising them and saving to monochrome TIFF using ScanTailor, then batch-...
user229543's user avatar

15 30 50 per page
1
2 3 4 5
16