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?
-
1You saved my life by making me discover Inkscape. Works much better than AI for creating EMF !– iDevlopCommented Jun 12, 2013 at 10:36
Add a comment
|
3 Answers
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
-
-
-
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.– rumtschoCommented Nov 14, 2013 at 12:06
-
1Hmm. This seems to use bitmap export, I'd like to maintain it as a vector EMF file.– Jason SCommented Mar 28, 2014 at 20:50
If you want the exact command to do this here it is:
$ inkscape --file <Input-file> --export-emf <output-file>
-
Side comment: You might want to install
sudo apt-get install libcanberra-gtk-module
to overcome theFailed to load module "canberra-gtk-module"
Gtk-Message which is shown every time one executes the command.– JJDCommented Jun 10, 2019 at 15:00
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
-
3This should be the correct answer today (version 1.0.1) Commented May 29, 2021 at 4:17
-
-
1With
inskscape --export-type="emf" myartwork.svg
you can skip explicitly naming the output file. Commented Oct 3, 2022 at 19:41