Questions tagged [svg]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
44 views

Replace an attribute value with another value in SVG

I have a directory that contains multiple SVG files. What I am trying to do is replace the height="2500" (value of height can be any integer) with height="{{ include.height }}". ...
1
vote
2answers
214 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, ...
0
votes
1answer
165 views

Resize titlebar buttons on GTK

I am trying to resize the close, minimize, maximize buttons. I do it like this: .titlebar.default-decoration button.titlebutton { min-height: 36px; min-width: 36px; -gtk-icon-transform: scale(1....
3
votes
1answer
343 views

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-...
1
vote
1answer
260 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/...
2
votes
1answer
887 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
216 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
475 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
3k 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
1k 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
136 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.
9
votes
1answer
5k 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 ...
14
votes
5answers
15k 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
3k 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
457 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
5k 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.