Sign up ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

I have thousands of JPG graphics and want to trace them automatically to vector SVG files with a batch function in Adobe Illustrator CS4/CS5.

All graphics looks something like that:

enter image description here

My problem is, I have only Adobe Photoshop (CS5), Illustrator (CS4) and Bridge (CS5) on my machine. Is there any way to do it with this software?

I tried to make actions in Illustrator.

  1. I changed the [Default] preset with my desired options: Object -> Live Trace -> Tracing options. Here I changed the options to this and saved as [Default]: enter image description here

  2. I started to record my action: Object -> Live Trace -> Make. But by doing this, Illustrator choose the "Custom" preset, so I didnt get my desired options. Like you can see, the "Miminal area" is set to 2px (in "Custom" mode it is 20px).

So, is there any way to do stuff like that with Illustrator or should I use any other software (if possible free)?

At the end I want to save the file as SVG.

Thank you

share|improve this question

2 Answers 2

up vote 4 down vote accepted

Potrace is free and you can do batch processing from the command line.

The first thing you need to do is converting all images to bmp format. There are several ways to do this but I use mogrify. Run

mogrify -format bmp *.jpg

Convert all images to SVG format:

potrace --svg *.bmp

The downside is that the quality of the conversion will not be as good with potrace as with Illustrator but I am rather sure that potrace is the best available option if you need a free program to generate SVG files from images with.

Mogrify is a part of the ImageMagick toolkit that can do much more than just converting images to a different file format.

Both image ImageMagick and potrace have released Windows versions of their programs but it is much easier to do this kind of processing on Linux. I might be worth it install a Linux distribution if you need to do this several times.

One key parameter that you need to change (if your images are as small as the example you provided) is the size of the image. This can also be done with mogrify. Here is one example (with monochrome settings) of what a traced image looks like.

Auto traces image

This example was generated with the following commands:

mogrify -resize 1000% -format bmp bAm4J.jpg

potrace -k 0.9 --svg bAm4J.bmp

share|improve this answer
thank you very much! I'll see if I can install that stuff on my office-machine, I'm not sure if it's ok due to our security policy... but it's a nice tool anyway! do you have any ideas how to make it with adobe illustrator? :) – co-KANH Aug 8 '14 at 7:54
You can create a live CD and run Linux directly from the USB stick. – Johan Aug 8 '14 at 9:09
we actually have some linux machines, but we are not able to install software :( – co-KANH Aug 8 '14 at 10:59
That's a nice edit :) – Yisela Aug 8 '14 at 16:28

Check this vid:

It explains how to setup and use macro's to record and execute actions which is just what you need(ed).

share|improve this answer
Hi Mac, could you please explain a bit more what we'll find behind the link you provide and why it answers the question? That way, your answer is still of value in case the link breaks at a later time. Link rot is the main reason we really dislike link-only answers here. Thanks for your effort and keep contributing! – Zach Saucier May 14 at 13:43
it only describes how to work with actions, but not how to automatically convert bitmap graphics to vector. but anyway, interesting video. – co-KANH May 21 at 15:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.