Questions tagged [svg]

20 questions
17
votes
5 answers

How to batch convert bitmaps to SVGs?

I have many gray scale bitmaps that I need to convert to a vector format, such as SVG. I have been using Inkscape, which gives nice results, but this takes about 10-15 minutes to open, convert, and save a file. Is there a batch or command line tool…
Village
  • 4,655
  • 14
  • 46
  • 80
10
votes
1 answer

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…
divanov
  • 251
  • 2
  • 10
8
votes
3 answers

Print an SVG from the command line

How can I print an SVG, already scaled to a4 size, from the command line? I tried using lpr, but instead the printer just printed out the actual XML of the file, which isn't what I wanted.
ixtmixilix
  • 13,040
  • 27
  • 82
  • 118
6
votes
4 answers

Are there any multiformat image viewers, which are similar to feh and can show SVG files?

At the moment I'm working with a lot of SVG files and I don't have a good tool to inspect this files. Normally I use feh to take a look at an image, but feh can't show SVG files. Now I'm looking for a replacement. The replacement should have all the…
Raphael Ahrens
  • 9,701
  • 5
  • 37
  • 52
4
votes
1 answer

limitations of CUPS command line printing of image files

I have my default printer set: lpoptions -d HP_ENVY_5530_series. I can print some text: echo HELLO > h.txt lp h.txt CUPS understands many different types of files directly, including text, PostScript, PDF, and image files. I can print a Portable…
joharr
  • 144
  • 2
  • 7
3
votes
1 answer

Icon themes, when is svg format helpful?

I found that arch provides both oxygen-icons and oxygen-icons-svg, what's the necessity of svg format? Is there something that a PNG image "can't do", maybe performance issue? Not sure about it.
daisy
  • 53,527
  • 78
  • 236
  • 383
3
votes
1 answer

Debugging a slow thumbnailer process

I am trying a debug a peculiar performance behavior in the thumbnail-generating process for eog, specifically gdk-pixbuf. The minimal files to reproduce are here: https://github.com/nbeaver/gdk-pixbuf-bug The process tree looks like this: systemd,1…
Nathaniel M. Beaver
  • 1,246
  • 13
  • 28
3
votes
1 answer

Set icon for file type, Linux Mint

I want the files with the extension .api to have some chosen SVG icon in the File Manager. Assume, we have a file: /usr/share/icons/HighContrast/scalable/apps/utilities-terminal.svg I add a new MIME type: create a ~/.mime.types file with a line:…
2
votes
3 answers

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…
color2v
  • 111
  • 1
  • 6
2
votes
1 answer

Configuring Apache to read svgz file type

I recently migrated a site to a new server. I'm now getting this error from Firefox when attempting to load an .svgz file: XML Parsing Error: not well-formed The svg rendered fine on the old server, so I'm assuming this is a problem with the Apache…
symlink
  • 211
  • 2
  • 6
2
votes
4 answers

Modify an SVG file based on information in a CSV file

I've got a SVG file of the map of the US and I want to add colors to it. Because it would take me to much time, I thought I could use a bash script. I have also another file containing the states and the colors that belong to them. SVG-file:
M-Reda Daoudi
  • 145
  • 1
  • 1
  • 6
2
votes
2 answers

Error opening file with Inkscape

I'm working on some maps I badly need for my MA thesis, using Inkscape, based on a map from Wikimedia Commons. I've opened the original SVG file, edited it and saved it. After closing Inkscape however, the next session of Inkscape is unable to open…
neydroydrec
  • 3,777
  • 8
  • 32
  • 42
1
vote
0 answers

How can I get my SVG icon to automatically change its colour depending on the background colour?

I am trying to add some icons into ~/.local/share/icons/ so that I can use them with notify-send. I can do that just fine, but the icon colour is not adapting to the background, unlike the Adwaita icons, and the contrast ends up being incredibly…
Silejonu
  • 11
  • 1
1
vote
1 answer

Using sed to replace the hexadecimal code for URL and to insert new SVG codes after SVG tag in all SVG files

I would like to ... replace the hexadecimal code for URL (id) in all SVG files insert/add the new lines of SVG codes after , using Regex. Input:
Oo'-
  • 233
  • 1
  • 7
1
vote
0 answers

Can gedit highlight element of svg stucture?

Gedit can show matching parenthesis. Can it do the same with tags of an SVG file ? For example when I mark I need to find closing tag.
Adam
  • 969
  • 1
  • 7
  • 15
1
2