I know I can use Save as in Inkscape to convert from SVG to Enhanced Metafile (EMF). But if I have several files this is a bit cumbersome. Is there a command line tool I could use instead?
Asked
Active
Viewed 2.8k times
28
hlovdal
- 3,048
- 4
- 32
- 39
-
1You saved my life by making me discover Inkscape. Works much better than AI for creating EMF ! – iDevlop Jun 12 '13 at 10:36
3 Answers
23
If you want the exact command to do this here it is:
$ inkscape --file <Input-file> --export-emf <output-file>
gst
- 366
- 2
- 8
-
Side comment: You might want to install `sudo apt-get install libcanberra-gtk-module` to overcome the `Failed to load module "canberra-gtk-module"` Gtk-Message which is shown every time one executes the command. – JJD Jun 10 '19 at 15:00
16
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
- 161
- 1
- 4
-
3
-
I tried all online tools in first page of google search "svg to emf", but they add black background while converting [this](https://drive.google.com/file/d/1glhwDJsjiDNLF3flmpgtIVfurum29xcQ/view?usp=sharing) svg to emf. Same is the case of above command. – RajS Jun 04 '22 at 17:26
-
With `inskscape --export-type="emf" myartwork.svg` you can skip explicitly naming the output file. – matt wilkie Oct 03 '22 at 19:41
13
Looks like you can use inkscape from the command lone to do this with the -M switch.
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/CommandLine-Export.html
Nick R
- 146
- 1
- 2
-
-
-
1
-
1@f3lix I don't remember the circumstances of making this comment, but there is a good chance I was on Linux. I was going to ask you how to do it on Linux then, but I guess this is offtopic enough to merit its own question. – rumtscho Nov 14 '13 at 12:06
-
1Hmm. This seems to use bitmap export, I'd like to maintain it as a vector EMF file. – Jason S Mar 28 '14 at 20:50
-
-
Some notes: the options can not be set on cli but it will use the last settings that have been used from gui – rac2030 Mar 04 '16 at 08:50