7

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

5

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

  • 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? :) – Jörg Steinhauer 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 :( – Jörg Steinhauer Aug 8 '14 at 10:59
  • That's a nice edit :) – Yisela Aug 8 '14 at 16:28
-1

Check this vid: http://youtu.be/T6MSeBXerbI

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

  • 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 '15 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. – Jörg Steinhauer May 21 '15 at 15:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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