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 ...
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 ...
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 ...
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. ...
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
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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) ...
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 ...
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?
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"
...
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
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 ...
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 |...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
svg × 58inkscape × 17
png × 8
icons × 6
fonts × 5
gnome × 4
nautilus × 4
software-recommendation × 4
pdf × 4
gimp × 4
image-processing × 4
image-viewers × 4
libreoffice × 3
eog × 3
command-line × 2
12.04 × 2
20.04 × 2
scripts × 2
10.04 × 2
application-development × 2
qml × 2
convert × 2
conversion × 2
vector-drawings × 2
vector × 2