44 votes

How to view an SVG image on Mac OSX?

A simple way is to use Quick Look in Mac, simply press space key on the keyboard.
Billy Wang's user avatar
38 votes
Accepted

How to export an minified/optimized svg from Inkscape?

In the Save As dialog select the file type to be: Optimized SVG (.svg) You then get a dialog where you can set which optional SVG elements can be excluded.
rob's user avatar
  • 882
33 votes

Command-line application for converting SVG to PNG on Mac OS X

OK, I found a simple way to do it on the Mac if you have Google Chrome. (and this works even if it is to convert a webp file in Chrome to png or jpg) In one sentence, it is to see the svg image in a ...
nonopolarity's user avatar
  • 9,646
26 votes
Accepted

Clickable URLs in PDF output created by Inkscape/SVG

This functionality has been implemented in Inkscape 1.0: right-click on object select "Create link" enter target address under "Href" store as PDF using "Save a copy..." ...
mzuther's user avatar
  • 460
24 votes

Is it possible to take a screenshot of a web page as an SVG image?

I wrote an open source browser extension that does exactly this. It works by traversing the DOM and converting elements to SVG elements, using the styles and coordinates computed by the browser. The ...
felixfbecker's user avatar
23 votes

Command line tool to convert SVG to EMF (Enhanced Metafile)

If you want the exact command to do this here it is: $ inkscape --file <Input-file> --export-emf <output-file>
gst's user avatar
  • 384
21 votes

Command line tool to convert SVG to EMF (Enhanced Metafile)

With Inkscape 1.0 the commands changed. And since this is the top Google result, I thought it might be worth to update the answer: inkscape filename.svg --export-filename filename.emf
Azrael_DD's user avatar
  • 311
21 votes

How can I convert all .svg files in a directory to .pdf on Linux in the commandline

In this post, the procedure is shown for a single file. The relevant command is: rsvg-convert -f pdf -o t.pdf t.svg For a whole directory, a simple bash script does the job: for i in *.svg;do rsvg-...
user36028's user avatar
  • 451
20 votes

How to create an inner border (stroke) in Inkscape?

An alternative workflow to the one presented by @cristian-ciupitu would be this: Create (or select) an object or a path with no fill. If you want, you can already set the stroke width (Shift+Ctrl+F), ...
llaurén's user avatar
  • 373
16 votes

How to get SVG thumbnails in Windows Explorer?

Microsoft PowerToys does that:
jan-glx's user avatar
  • 417
13 votes

How do I convert an SVG to a PDF on Linux

I'm wondering why it hasn't been mentioned before, but I tested a bunch of different svg->pdf converters and found that the best one is Headless Chrome. It produces the most precise results for me. ...
Avael Kross's user avatar
11 votes

How to view an SVG image on Mac OSX?

If you're part of the unlucky few where double clicking an .svg from Finder or opening it from the command line like open filename.svg just opens your svg file source in a text editor (and you wanted ...
rogerdpack's user avatar
  • 2,226
10 votes

How to view an SVG image on Mac OSX?

I needed a nearly-portable solution to view SVG files (vector export from Google Drawings, which doesn't print large images well) since my Mac is locked down to prevent typical software installation, ...
Dalek Control's user avatar
8 votes

Converting from EPS to SVG format

Install Inkscape (I was on Ubuntu) sudo apt-get install inkscape EPS to SVG inkscape input.eps -l converted.svg SVG to PNG inkscape input.svg -e converted.png
timelf123's user avatar
  • 189
8 votes
Accepted

How to retain color when using Potrace?

You can’t. Potrace strictly processes any/all import to black and white output. According to the official FAQ, there is no support for color output; strictly black and white output: Question: Can ...
Giacomo1968's user avatar
  • 55.5k
7 votes

Batch convert SVG images to desired size PNG or ICO

For SVG to PNG conversion I found cairosvg (https://cairosvg.org/) performs better than ImageMagick. Steps for install and running on all files in your directory. pip3 install cairosvg Open a python ...
edank's user avatar
  • 71
7 votes

Command-line application for converting SVG to PNG on Mac OS X

Yet another method without installing anything. Not in command line though. Open the .svg file in Safari. Press alt-command-i to open the inspector. Right-click on the <svg> tag, select "...
Haotian Yang's user avatar
6 votes

How can I convert SVG images to Windows ICO or Mac ICN icons?

To expand on @Colonel Panic's original answer, which I feel is best, on a Mac you'll need to first install ImageMagick's CLI tools with: brew install imagemagick This provides the convert command, ...
Kevinleary.net's user avatar
6 votes

Best way to view white SVG on Windows

There is no direct way to view white SVGs but you can do some hack to view them on a chrome browser. Drag and drop the svg to chrome browser and open the dev tools(f12 or ctrl + shift + i) and change ...
Jry9972's user avatar
  • 161
6 votes

How to crop SVG?

Try: inkscape --batch-process \ --verb "EditSelectAll;FitCanvasToSelection;FileSave;FileQuit" \ filename.svg Under Mac OS the following command line worked: inkscape -g --verb="...
Ilya V. Schurov's user avatar
5 votes

Batch convert SVG images to desired size PNG or ICO

Most answers given here ignore the at the desired size part of the question. I could not get satisfying results using convert when "upscaling" an SVG. inkscape does a better job and also ...
kynan's user avatar
  • 3,536
5 votes

Command-line application for converting SVG to PNG on Mac OS X

This is what I used: brew install imagemagick --with-librsvg Then run the following commands: find . -type f -name "*.svg" -exec bash -c 'convert $0 $0.png' {} \; rename 's/svg\.png/png/' * Hope ...
Alan Dong's user avatar
  • 193
5 votes

How do I convert an SVG to a PDF on Linux

On Mac OS (considering that you already have brew installed) I do: $ brew install cairo libffi python3 $ pip3 install cairosvg $ cairosvg -o blah.pdf ./blah.svg Same should work on Linux, but with ...
Adriel Jr's user avatar
  • 151
5 votes

How do I convert an SVG to a PDF on Linux

The answer by @pts doesn't work with recent versions of Inkscape ( 1.0 or newer). To convert an SVG file to PDF: inkscape --export-type=pdf my_file.svg This will export it to my_file.pdf. If you ...
s.ouchene's user avatar
  • 211
5 votes

Use Font Awesome in Inkscape

You can use the "symbols" library, which is very useful. You can import some icons, like font awesome. This repository is great : https://github.com/Xaviju/inkscape-open-symbols
Drasill's user avatar
  • 181
5 votes

How to view an SVG image on Mac OSX?

There is a nice new free SVG editor with you can get from the Mac App Store or the Chrome Web Store. Give it a try, it's free now $9.99 on the App Store. Boxy SVG - the scalable vector graphics ...
Laszlo's user avatar
  • 150
5 votes

How to export an minified/optimized svg from Inkscape?

The built-in Optimized SVG exporter uses Scour and does a decent job. However, running the file through SVGOMG usually optimizes the file even further, and has the benefit of a live preview, so you ...
Charles Roper's user avatar
4 votes

Command-line application for converting SVG to PNG on Mac OS X

You can also use phantomjs to render the svg. The advantage is that it renders it like a browser would since it's basically a headless WebKit. Once you download it you need phantomjs (binary) and ...
Stofke's user avatar
  • 162
4 votes

How to create an inner border (stroke) in Inkscape?

Select the stroke and Path -> Stroke to path, now your stroke becomes a "shape" Use Path -> Division to divide the shape into inner and outer parts.
qed's user avatar
  • 275
4 votes

Batch convert SVG images to desired size PNG or ICO

You may use the following in Bash / Ubuntu for Windows, in the folder you have the SVGs at. It seems however that ImageMagick first rasterizes then resizes, which results in strange artifacts… find -...
Arty2's user avatar
  • 67

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