Questions tagged [svg]

The tag has no usage guidance.

1
vote
1answer
127 views

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 <svg ...>, using Regex. Input: <svg xmlns="http://www.w3.org/...
0
votes
0answers
19 views

Can I drag a node without breaking the edges in SVG file in Inkscape?

I used GraphViz to create a diagram in a SVG file. The placement of the nodes is not ideal. I learnt that Inkscape can be used for editing SVG file. Is there a way to drag and move a node, without ...
2
votes
1answer
121 views

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 ...
0
votes
1answer
174 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. I aligned all old pictures in units of millimetre. How can I convert all old files with a script? Is there an ...
2
votes
1answer
313 views

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, ...
2
votes
1answer
2k views

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, ...
2
votes
4answers
986 views

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 ...
1
vote
0answers
126 views

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 <text> I need to find closing </text> tag.
8
votes
1answer
4k 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 ...
13
votes
4answers
13k views

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 ...
5
votes
3answers
2k views

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 ...
0
votes
1answer
2k views

Convert SVG to PDF in python [closed]

I am trying to convert an SVG file to PDF in python using the svglib and reportlab packages. Here is the SVG file. <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG ...
3
votes
1answer
420 views

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.
2
votes
2answers
2k views

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 ...
8
votes
3answers
4k views

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.