12 votes

How do I convert a PNG to SVG?

Use the convert command in the terminal : For example: convert EXAMPLE.png EXAMPLE.svg Here's some info from the manpage: convert(1) - Linux man page Name convert - convert between image formats as ...
CPH's user avatar
  • 388
6 votes
Accepted

Huge .svg. How to open in 20.04

This is a bug in librsvg package. They have 200000 items hardcoded for versions prior 2.49.5. I can confirm the bug on Ubuntu 20.04 LTS. So I have reported it to LaunchPad as bug 1916055. Popular ...
N0rbert's user avatar
  • 99.8k
6 votes
Accepted

22.04 SVG "open with another application" not working with InkScape

This is (yet another) limitation of the current implementation of Snap. The connectors are set properly, so Inkscape, once loaded, has access to visible files in your home directory. However, the ...
vanadium's user avatar
  • 87.9k
6 votes
Accepted

Not able to open .svg files: XML parse error

Your document viewer complains about the svg file having an xlink notation somewhere without being declared. As such, your svg file is not a valid xml and the document viewer complains correctly. ...
pLumo's user avatar
  • 26.9k
5 votes

Error with Qtcreator when running project "error: Unknown module(s) in QT: qml quickwidgets svg quick"

Found the solution, install qtdeclarative5-dev package: sudo apt-get install qtdeclarative5-dev What's the development package for Qt5 in 14.04
Chohan's user avatar
  • 91
4 votes
Accepted

How can I print svg files from command line using image viewer (eog) or lpr?

As you have experienced lpr will only print svg files as XML (and thus prints pages filled with text only). However there is a very simple workaround which is to convert the svg files to something ...
andrew.46's user avatar
  • 38k
3 votes

How can I reduce the size of a SVG using software on Ubuntu?

Use svgo https://spin.atomicobject.com/2016/11/10/svgo-compressing-svg-images/ Works quickly and provides a summary of results You can use it using the same file for input & output, or not. # svgo ...
Rub's user avatar
  • 171
3 votes

How do I convert a PNG to SVG?

I found VTracer It is open source and there is an online converter. The source code is at Github: https://github.com/visioncortex/vtracer
guettli's user avatar
  • 1,727
2 votes
Accepted

Command line tool to resolve transforms in SVG

SVGO works fine for your example. I tested on 3.2.0. npm i -g svgo and svgo in1.svg in2.svg -o out1.svg out2.svg: in1.svg <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10000 ...
Daniel T's user avatar
  • 4,584
2 votes

How do I convert a PNG to SVG?

I just have used gimp right now with amazing results. I first used potrace but all I got was an image all in black with a lot of distortion. Maybe I didn't used it properly but when I tried with gimp ...
Ivan Cervantes's user avatar
2 votes

How can I reduce the size of a SVG using software on Ubuntu?

svgcleaner is very robust and quite fast. svgcleaner input.svg output.svg The svgcleaner repo has a comparison vs scour and svgo. In my experience svgcleaner is safer than svgo and scour; I've had ...
Clément's user avatar
  • 271
2 votes

Is there a way to batch export SVGs to PNGs?

Here's a slightly different alternative solution in a more readable scripting language - python. It can batch export all your svgs. Particularly ideal if you're doing Android dev and have to make ...
Kevin Lee's user avatar
  • 121
2 votes
Accepted

Krita: Clean up image

Open image by GIMP Select Colors > Brightness-Contrast Then drag the slider into really high contrast and low brightness. Like this. Then you get an image like before-after: Now no graduation is ...
Sadaharu Wakisaka's user avatar
1 vote
Accepted

How to install rsvg-view in Ubuntu 20?

Stop building rsvg-view-3. It has been removed upstream and will not be included in librsvg 2.45.x. The upstream developer of librsvg suggests eog as a better interactive GUI SVG viewer; display(1) ...
user285684's user avatar
1 vote

Location of SVG source file for folder icon (GNOME)

The svg version of this icon (plus friends) can be found in the adwaita-icon-theme source code with the following path: adwaita-icon-theme-3.24.0/src/fullcolor/folders.svg Of course the root ...
andrew.46's user avatar
  • 38k
1 vote
Accepted

Wrong window buttons color with a custom theme

It happened to me, Ubuntu usually change the files' permissions. Have you tried running chmod -R 777 theme_folder_path?
pirrey's user avatar
  • 26
1 vote
Accepted

find does not go through all files in folder structure

If you don't have line breaks in the names of your files or folders you should use a while instead of a for loop: find -iname "*.wmf" | while read file; do uniconvertor "$file" "${i%.wmf}.svg" ...
Florian Diesch's user avatar
1 vote

How can I reduce the size of a SVG using software on Ubuntu?

gzip -S z ./examples/*/*.svg See https://lists.w3.org/Archives/Public/www-svg/2007Apr/0025.html
HinzundKunz's user avatar
1 vote

Export image as SVG in GIMP

potrace is the tool for that. You can process them bulk, but first you have to convert the images to monochrome: ls ./p*.jpg | xargs -L1 -I {} convert -monochrome {} {}.bmp ls -1 ./*.bmp | xargs -L1 ...
Eduard Florinescu's user avatar
1 vote

Is there a way to batch export SVGs to PNGs?

If not all files, but only certain SVG files need to be converted to PNG, one might use sed to automatically generate the file names: inkscape --without-gui --export-width=1280 --export-png=`echo $1 |...
Serge Stroobandt's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible