Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
1
votes
1
answers
69
views
Crop pdf removing content cropped away
I do have a pdf that contains a drawing, a part of which I would like to extract. I am able to open the pdf in inkscape. However, it contains a group with 150k items. As far as I see, there are no subgroups that I could select as entity. Now just trying to select the parts that I would like to delet...
I do have a pdf that contains a drawing, a part of which I would like to extract.
I am able to open the pdf in inkscape. However, it contains a group with 150k items. As far as I see, there are no subgroups that I could select as entity. Now just trying to select the parts that I would like to delete does not work (inkscape still has 100% CPU load after 3 hours).
Is there a command line tool that would allow me to crop the pdf *and* to delete the elements that are outside the cropped area? This would then allow me to further edit the extracted section using inkscape.
user52366
(221 rep)
Jul 5, 2025, 01:12 PM
• Last activity: Jul 5, 2025, 01:43 PM
0
votes
0
answers
26
views
In manjaro linux, how to get the math rendering extension to work with inkscape
I have downloaded inkscape through the software manager (GUI) in manjaro. By default it doesn't seem to render math under the extensions drop down. So I have tried multiple solutions. I have installed texlive and textext through pacman and pamac, closed inkscape and even restarted the computer, but...
I have downloaded inkscape through the software manager (GUI) in manjaro.
By default it doesn't seem to render math under the extensions drop down. So I have tried multiple solutions. I have installed texlive and textext through pacman and pamac, closed inkscape and even restarted the computer, but I don't get the option in the drop down still.
What should I do?
Makogan
(113 rep)
Sep 13, 2024, 01:14 AM
0
votes
1
answers
348
views
Convert SVG to PNG using the command line with '-w' and '-h' values applied as a "box"
Here is an SVG image from Wikipedia: (Downloadable version: https://upload.wikimedia.org/wikipedia/commons/3/3d/CH-Hinweissignal-Wegweiser_f%C3%BCr_Hauptstrassen.svg) ``` image/svg+xml ``` The following commands successfully converts it to 2000×493 and 406×100 pixel PNGs respectively: - `i...
Here is an SVG image from Wikipedia:
(Downloadable version: https://upload.wikimedia.org/wikipedia/commons/3/3d/CH-Hinweissignal-Wegweiser_f%C3%BCr_Hauptstrassen.svg)
image/svg+xml
The following commands successfully converts it to 2000×493 and 406×100 pixel PNGs respectively:
- inkscape -w 2000 input.svg -o output.png
- inkscape -h 100 input.svg -o output.png
But if I specify both width and height (-w 2000 -h 100
), both the values are used forcefully, and so the resulting image is distorted (2000×100 px).
Is it possible to specify them in such a way that they are applied as a "box" instead, that is,
- inkscape -w 2000 -h 100 input.svg -o output.png
should results in 2000×493 px image
- inkscape -w 100 -h 2000 input.svg -o output.png
should results in 100×25 px image
jsx97
(1347 rep)
Aug 2, 2024, 01:29 PM
• Last activity: Aug 19, 2024, 04:38 PM
5
votes
2
answers
1631
views
On Screen Protractor
A handy program for measuring the pixel dimensions of something on-screen is screen ruler: sudo apt install screenruler ; screenruler I like how you can place it anywhere on your screen and it stays on top of all other applications as you use it. I'm hoping to find something similar to this that's a...
A handy program for measuring the pixel dimensions of something on-screen is screen ruler:
sudo apt install screenruler ; screenruler
I like how you can place it anywhere on your screen and it stays on top of all other applications as you use it.
I'm hoping to find something similar to this that's a protractor instead of a ruler.
I searched for "protractor" in the repository of Debian 11 and got no results:
sudo apt-cache search "protractor"
Such a tool would be great for measuring angles on-screen. However, ultimately, I will likely need something that can actually draw a line based on a specified angle.
Hopefully I won't have to learn something as sophisticated as AutoCad in order to accomplish this. What's the simplest way to measure and draw angles in Linux?
Lonnie Best
(5415 rep)
Nov 15, 2022, 03:58 PM
• Last activity: Jun 12, 2023, 11:09 AM
-1
votes
3
answers
110
views
Do we have inkscape program available in debian based base image
I am creating a image and need to deploy it in docker container. I have dependency of Inkscape in my project for converting svg to png . I need to update my docker file as I need to add following command. RUN APT-GET UPDATE && APT-GET INSTALL INKSCAPE I am using python:3.10 as [base image link][1] m...
I am creating a image and need to deploy it in docker container.
I have dependency of Inkscape in my project for converting svg to png .
I need to update my docker file as I need to add following command.
RUN APT-GET UPDATE && APT-GET INSTALL INKSCAPE
I am using python:3.10 as base image link my base image . Will it support to install the above package or I need to change it .
Chat Gpt is saying I need to change on the other hand bard.google.com is saying it will support ..
Faraz
(1 rep)
May 31, 2023, 03:27 AM
• Last activity: May 31, 2023, 04:29 AM
0
votes
1
answers
42
views
Screen or canvas not updated for Inkscape on Debian bookworm and XFCE
I encounter a problem with Inkscape on Debian bookworm with XFCE and X11. I ask my question here because I suspect that the problem might be linked to something else than Inkscape (compositor maybe?). It is illustrated in [this screen capture][1]. 1. I draw a rectangle → everything fine 2. I Select...
I encounter a problem with Inkscape on Debian bookworm with XFCE and X11.
I ask my question here because I suspect that the problem might be linked to something else than Inkscape (compositor maybe?).
It is illustrated in this screen capture .
1. I draw a rectangle → everything fine
2. I Select the text tool, click on the canvas and type some text →
nothing displayed / normally the letters should have appeared on
the canvas
3. Click and drag to create a text box, write some text → nothing
displayed / same expectations
4. I open the text options → the text previously typed in 2 and 3 is now
displayed on canvas
5. Click and write some more text → again, the canvas is not updated
6. click on the separator between canvas and options (as if to resize
the options box) → the text typed in step 5 appears on the canvas
7. Close the options → the canvas is not updated, the pixels of the
options box remain displayed, although the box is no longer "there".
My understanding so far is that the problem is with how the screen is (not) updated. The bug is especially obvious in step 7. I couldn't find a bug report describing this problem for Inkscape, therefore I think that it is linked to something in my configuration. Where could I start looking ? Could it be something related to X11 vs Wayland ?
My video card is
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
Victor
(141 rep)
Mar 17, 2023, 08:48 AM
• Last activity: Apr 28, 2023, 07:03 AM
3
votes
3
answers
7112
views
How to view a big svg file?
I have a big SVG file (~200MB): it's a graph with very precise data. However when gzipped into graph.svgz its size is around 3 MB, so you see it's very repetitive data. When I attempt to open it, Inkscape hangs and fills up the RAM, the only exit is reboot [REISUB][1]. I use Debian 10 with KDE deskt...
I have a big SVG file (~200MB): it's a graph with very precise data. However when gzipped into graph.svgz its size is around 3 MB, so you see it's very repetitive data.
When I attempt to open it, Inkscape hangs and fills up the RAM, the only exit is reboot REISUB .
I use Debian 10 with KDE desktop.
Any idea to view the image ? It's OK to use another tool than inkscape, but I need to view the chart in detail, so generating a postage-stamp-sized PNG is not a good solution.
color2v
(163 rep)
May 20, 2020, 05:44 PM
• Last activity: Apr 19, 2021, 07:54 PM
0
votes
2
answers
107
views
Where does Inkscape 1.x get path settings from?
In Inkscape 1.02 on Gentoo Linux I see several duplicate paths in the system settings window (open with CTRL + SHIFT + P) [![screenshot with duplicate paths][1]][1] I would like to drop obsolete/duplicate paths. Where does Inkscape get these path information from? echo ${PATH} Shows different paths....
In Inkscape 1.02 on Gentoo Linux I see several duplicate paths in the system settings window (open with CTRL + SHIFT + P)
I would like to drop obsolete/duplicate paths.
Where does Inkscape get these path information from?
echo ${PATH}
Shows different paths.

Jonas Stein
(4298 rep)
Feb 18, 2021, 02:18 AM
• Last activity: Feb 22, 2021, 01:15 AM
0
votes
3
answers
2249
views
Default settings for Inkscape ?
I want to take default settings for Inkcape in my Ubuntu 14.04 but I can't change by default setting. I already remove Inkscape, and re-install, but the configurations keep the same. How can I change by default all setting in Inkscape?
I want to take default settings for Inkcape in my Ubuntu 14.04 but I can't change by default setting.
I already remove Inkscape, and re-install, but the configurations keep the same.
How can I change by default all setting in Inkscape?
Vitor Mazuco
(1014 rep)
Dec 16, 2014, 04:58 PM
• Last activity: Feb 18, 2021, 02:32 AM
1
votes
1
answers
2277
views
strace reports a system call which is taking too long
# The problem The following code snippet shows the time it took to my system to open `inkscape` plus the time it took to me to immediately close the `inkscape` window. ``` $ /usr/bin/time -p inkscape real 26.95 user 0.59 sys 0.05 ``` I've read posts ([here](https://askubuntu.com/questions/574849/ink...
# The problem
The following code snippet shows the time it took to my system to open
inkscape
plus the time it took to me to immediately close the inkscape
window.
$ /usr/bin/time -p inkscape
real 26.95
user 0.59
sys 0.05
I've read posts ([here](https://askubuntu.com/questions/574849/inkscape-starts-extremely-slow) and [here](https://askubuntu.com/questions/574849/inkscape-starts-extremely-slow)) in which people reports that inkscape takes too much to start but the answers relates this problem with the number of fonts installed in the user's system.
As far as I know, I can get the number of fonts installed in my system with the following command (see below). So, the number of fonts installed in my system is not the problem here.
$ fc-list | wc -l
105
I tried looking at the strace
command output and found the tasks which are slowing down the process of opening inkscape
. (I'm not sharing the complete log of strace
because it is reporting the name of some personal files among all the output.)
$ strace --absolute-timestamps=ns inkscape
...
13:27:03.700577007 read(11, "\1\0\0\0\0\0\0\0", 16) = 8
13:27:03.700603187 poll([{fd=11, events=POLLIN}], 1, 25000) = 0 (Timeout)
13:27:28.725932887 write(11, "\1\0\0\0\0\0\0\0", 8) = 8
13:27:28.726024537 futex(0x55ca60dcb240, FUTEX_WAKE_PRIVATE, 2147483647) = 0
...
As you can see above, there are 25 seconds between two tasks, so this definitely has to do with the problem.
# The question
What is the poll
system call doing and how can I reduce the time it takes to my system to execute that system call?
**PD1**: I tried searching poll([{fd=11, events=POLLIN}], 1, 25000
on Google and found [this question](https://bbs.archlinux.org/viewtopic.php?id=239331) in which the poster explains that GTK3 applications are starting slowly and relates this misbehavior with the fact that strace
shows a system call that is taking too much time (which is the same as the one presented in this post) but I didn't found the answers helpful.
gfe
(191 rep)
May 20, 2020, 06:41 PM
• Last activity: May 20, 2020, 06:54 PM
2
votes
1
answers
694
views
How to open a file in the /tmp folder in inkscape?
Some software I use uses inkscape to convert images from one format to another, as an intermediate step. This means that they write images to the `/tmp` folder, and attempt to use inkscape on those images to obtain the image format they need. However, on my system, inkscape doesn't like the `/tmp` f...
Some software I use uses inkscape to convert images from one format to another, as an intermediate step. This means that they write images to the
/tmp
folder, and attempt to use inkscape on those images to obtain the image format they need. However, on my system, inkscape doesn't like the /tmp
folder.
When trying to open/edit an svg file in the /tmp
directory using inkscape, e.g., inkscape /tmp/test.svg
it throws the error/warning
** (inkscape:6528): WARNING **: Can't open file: test.svg (doesn't exist)
The file exists, and I can open it with Budgie's default viewer.
When doing something similar in the home folder, e.g., inkscape ~/test.svg
the test file opens just fine.
Inkscape itself runs when calling inkscape
somewhere in the /tmp
folder, it just can't use files from the folder.
I am running Solus 4, and installed inkscape using sudo snap install inkscape
.
Abby
(153 rep)
May 4, 2019, 12:07 PM
• Last activity: May 4, 2019, 03:08 PM
1
votes
1
answers
128
views
Failed to receive the Open Clip Art Library RSS feed
I tried import drawings from OpenClipArt in my Ubuntu using Inkscape, but appear this problem below: > Failed to receive the Open Clip Art Library RSS feed. Verify if the server name is correct in Configuration->Import/Export (e.g.: openclipart.org) How can I fix this and import drawings from OpenCl...
I tried import drawings from OpenClipArt in my Ubuntu using Inkscape, but appear this problem below:
> Failed to receive the Open Clip Art Library RSS feed. Verify if the server name is correct in Configuration->Import/Export (e.g.: openclipart.org)
How can I fix this and import drawings from OpenClipArt.org?
Vitor Mazuco
(1014 rep)
Jan 8, 2015, 05:08 PM
• Last activity: Apr 6, 2019, 01:01 AM
1
votes
1
answers
813
views
Inkscape and uniconverter
Started working in Inkscape and after drawing a few boxes I am being bombarded by a billion pop-ups with this warning: Traceback (most recent call last): File "/usr/bin/uniconvertor", line 13, in uniconv_run() File "/usr/lib/python2.7/dist-packages/uniconvertor/__init__.py", line 83, in uniconv_run...
Started working in Inkscape and after drawing a few boxes I am being bombarded by a billion pop-ups with this warning:
Traceback (most recent call last):
File "/usr/bin/uniconvertor", line 13, in
uniconv_run()
File "/usr/lib/python2.7/dist-packages/uniconvertor/__init__.py", line 83, in uniconv_run
from app.io import load
File "/usr/lib/python2.7/dist-packages/uniconvertor/app/__init__.py", line 69, in
from conf.configurator import Configurator
File "/usr/lib/python2.7/dist-packages/uniconvertor/app/conf/configurator.py", line 11, in
from app.events import connector
File "/usr/lib/python2.7/dist-packages/uniconvertor/app/__init__.py", line 69, in
from conf.configurator import Configurator
File "/usr/lib/python2.7/dist-packages/uniconvertor/app/conf/configurator.py", line 13, in
from sk1libs.utils.fs import gethome
ImportError: No module named sk1libs.utils.fs
So I know I need to install the uniconverter, but I can't even get past the first package:
dpkg: dependency problems prevent configuration of python-sk1libs:
python-sk1libs depends on liblcms1; however:
Package liblcms1 is not installed.
liblcms1
doesn't exist for ubuntu 16.04 as far as I can tell and some have suggested that liblcms2-dev
is an alternative, but having installed it, I still get the same error above. Would love a solution to this.
crysis405
(131 rep)
Mar 16, 2018, 08:22 PM
• Last activity: Jan 22, 2019, 01:50 AM
-1
votes
1
answers
578
views
Script to create new files with content recursively
I have a tree of folders where every folder contains between two and three jpg files. As I have plenty folders, I would like to develop a script to create recursively an Inkscape file in every folder containing the jpg files in it, and renaming the svg file with the name of the containing folder. Ho...
I have a tree of folders where every folder contains between two and three jpg files. As I have plenty folders, I would like to develop a script to create recursively an Inkscape file in every folder containing the jpg files in it, and renaming the svg file with the name of the containing folder. How may I achieve this?
antecessor
(103 rep)
Sep 24, 2017, 08:10 AM
• Last activity: Sep 24, 2017, 08:56 AM
0
votes
1
answers
236
views
Automatic conversion of Inkscape <=0.91 files to the new 0.92 CSS format
Inkscape 0.92 asks the user if old files should be converted to match [the new resolution][1]. [![Selection pop up][2]][2] I aligned all old pictures in units of millimetre. How can I convert all old files with a script? Is there an inkscape argument I can use for a commandline like find -name "*.sv...
Inkscape 0.92 asks the user if old files should be converted to match the new resolution .
I aligned all old pictures in units of millimetre.
How can I convert all old files with a script?
Is there an inkscape argument I can use for a commandline like
find -name "*.svg" | xargs inkscape ...

Jonas Stein
(4298 rep)
Aug 1, 2017, 11:28 PM
• Last activity: Aug 2, 2017, 04:08 PM
1
votes
0
answers
989
views
Install Inkscape 0.91 on Debian Weezy
There is no Debian Wheezy build of latest (0.91) stable version of Inkscape (https://inkscape.org/en/download/linux/). So i can't use Apt. I have try to obtain source code using Bazaar. First I install bzr: apt-get install bzr Then I use command bzr branch lp:inkscape And I have got ~400mb of files....
There is no Debian Wheezy build of latest (0.91) stable version of Inkscape (https://inkscape.org/en/download/linux/) . So i can't use Apt.
I have try to obtain source code using Bazaar.
First I install bzr:
apt-get install bzr
Then I use command
bzr branch lp:inkscape
And I have got ~400mb of files.
But I can't find any
./configure
files, and make
command doesn't work.
Is it possible to have Inkscape 0.91 on Debian 7. And what is the easiest way?
vatavale
(111 rep)
Jul 8, 2015, 06:20 PM
• Last activity: Jan 6, 2017, 06:49 AM
1
votes
1
answers
655
views
Inkscape won't open
I have tried installing Inkscape through both the terminal, app grid, synaptic and using the .deb file. Also, I have tried both the 32 and 64 bit versions. The icon appears but when I try to launch it the loader spins for a while but then stops and it stops running. Strangely, it does not appear in...
I have tried installing Inkscape through both the terminal, app grid, synaptic and using the .deb file. Also, I have tried both the 32 and 64 bit versions. The icon appears but when I try to launch it the loader spins for a while but then stops and it stops running. Strangely, it does not appear in the system monitor and no windows appear although if I right-click the icon it does give the option to create a new drawing(the button does not work though).
Some One
(47 rep)
Oct 26, 2016, 10:10 PM
• Last activity: Oct 27, 2016, 09:50 AM
10
votes
1
answers
6341
views
Crop SVG drawing to canvas size in command line
I have SVG images produced by PlantUML, which has some parts of drawing outside of canvas. It makes it difficult to use such images and I need to crop drawing to canvas size. As I produce UML diagrams with script anyways, it would be really efficient to perform a cropping there as well. So far I've...
I have SVG images produced by PlantUML, which has some parts of drawing outside of canvas. It makes it difficult to use such images and I need to crop drawing to canvas size. As I produce UML diagrams with script anyways, it would be really efficient to perform a cropping there as well.
So far I've tried two things:
a) resize canvas to drawing with Inkscape
inkscape --verb=FitCanvasToDrawing --verb=FileSave --verb=FileClose *.svg
This works fine, but I need to crop drawing to canvas size and this operation seems to be unavailable.
b) resize with rsvg-convert
rsvg-convert image.svg -w 1870 -h 1195 -f svg -o image.svg
This does exactly croping to the desired size, but image size increases ~10 times as now there are some binary images embedded into SVG. This is not acceptable for me.
divanov
(251 rep)
May 7, 2014, 12:45 PM
• Last activity: Dec 3, 2015, 11:08 AM
7
votes
4
answers
956
views
Clean way to temporarily replace a config file?
I use a drawing program called Inkscape, which has both a GUI and a command line interface. When used on the command line, it has a large number of options that can only be controlled through a user-specific config file, which is hardcoded to be: $HOME/.config/inkscape/preferences.xml This config fi...
I use a drawing program called Inkscape, which has both a GUI and a command line interface. When used on the command line, it has a large number of options that can only be controlled through a user-specific config file, which is hardcoded to be:
$HOME/.config/inkscape/preferences.xml
This config file always contains the options that were most recently used in the GUI, which may be the wrong ones when I'm scripting.
To work around this, I have my script save a copy of the config file, replace it with a standard config file, run the program, and then copy the saved config file back.
This works OK but is not really clean. For example, it won't work properly if two instances of the script are being run concurrently.
On Unix, is there a cleaner way to carry out this task of faking out a program so it takes its config file from someplace that I want, rather than from the pathname hardcoded in the program? Maybe something involving links, or something like BSD jails?
user39248
Nov 2, 2013, 02:40 AM
• Last activity: Oct 22, 2015, 03:47 PM
0
votes
2
answers
578
views
Installing OpenType font
I bought a full copy of Hoefler Txt, which is an OpenType font, and I'm trying to install it now on my system (Mint 17). However, the results are inconsistent between programs. Here are the steps I'm taking: 1. Adding the directory `/usr/share/fonts/opentype` (as superuser), and copying the 9 `.otf`...
I bought a full copy of Hoefler Txt, which is an OpenType font, and I'm trying to install it now on my system (Mint 17). However, the results are inconsistent between programs. Here are the steps I'm taking:
1. Adding the directory
/usr/share/fonts/opentype
(as superuser), and copying the 9 .otf
files there. All files belong to root, but are readable to everybody.
2. Running sudo fc-cache -fv
.
However, as I said, the results are inconsistent:
- LibreOffice lists every variant (bold, italic, etc.) as an entirely separate font.
- GIMP lists some variants, but not bold. The plain font itself is bold by default, and can't be made not bold.
- Inkscape lists only a single font, but when I use it, it's bold. I can make it bold-italic, or bold.
- XeTeX also makes it bold, and I can't find a way for it to not be bold.
Does anybody have a clue what's going on? Did I not install the font correctly? Is there a way to check if it's properly installed?
Adam Smith
(151 rep)
May 21, 2015, 07:55 AM
• Last activity: May 21, 2015, 12:50 PM
Showing page 1 of 20 total questions