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 save a file. Is there a batch or command line tool that can convert these?
I found this example on SO in a Q&A titled: How to convert a JPEG image into SVG format using ImageMagick?. One of the answers suggested
Looking at the
Another option to
You'll likely have to play with the
Which to use?
Of these 2 it really depends on the source material. If you're converting images then
You can wrap either of these commands in a for loop in Bash, which will make easy work of doing bulk conversion tasks.
You could try autotrace.
Using the following command you get the following results:
I had to take a screencapture of the resulting svg and save as png to show the output.
Here is a source image jpg:
Here is the resulting image:
Normally, I do all my image manipulation tasks with
That will create files called
The problem with this approach is that, at least on my system, it pops up an annoying graphical dialog asking if I want to link or embed the image:
So, you still need to click OK manually, but it is still much much faster than doing it file by file.
The output images are identical as far as I can tell: