Live Trace: Converting Rasters to VectorsCertain Illustrator features, like Pathfinder, are incredibly useful and as a result, are used many times a day. Features like 3D are also extremely cool, but they aren't used as often. Every once in a while, a feature comes along in Illustrator that is cool and fun to use, but that is also practical enough that you use it on a regular basis. Illustrator's Live Trace is such a feature.The concept is simple enough: take a raster-based image and convert it into a vector-based image. You would want to do this to get around the limitations of a raster-based file. For example, if you want to scale artwork up in size, or if you want to edit the artwork easily and use spot colors, you want to work with a vector-based file.There are separate applications (like Adobe Streamline) and Illustrator plugins (like Free Soft's Silhouette) that have the ability to convert raster content into vectors, but Illustrator CS2's Live Trace is a far step above and beyond what those tools are capable of. One of the main reasons for this is because of how Live Trace works.Live Trace uses a two-step process when converting rasters to vectors. In the first step, Live Trace conditions the raster image for optimal tracing. This means that Illustrator makes adjustments to the raster image, like adjusting contrast or blurring jagged edges. In the second step, Live Trace draws vector paths, creating highly accurate vector art (Figure 8.14 ). Although the tracing is theoretically done at that point, Illustrator retains a link to the original raster image so that you can make adjustments to the tracing settings. As you update the different raster conditioning and vector tracing settings, you can preview the results immediately. This makes it easy to get just the right tracing result that suits your needs best. Figure 8.14. Illustrator's Live Trace feature starts with the original raster image (top), conditions the image (center), and then converts it to clean vectors (bottom). The first two examples in this 3-page spread use the Black and White setting for tracing, whereas the third shows the Grayscale tracing setting.[View full size image] ![]()
Tracing an ImageTracing an image is simple. Select any raster image in your Illustrator document and click the Live Trace button in the Control palette. Alternatively, you can choose Object > Live Trace > Make. This action traces the image using Illustrator's default trace preset. Illustrator actually ships with 13 different tracing presets, each optimized for different kinds of images and desired result. Once the image is traced, it maintains a live link to the raster image and you can customize the tracing settings. For example, once the image is traced, the Control palette changes to reflect different settings, including a Preset pop-up menu (Figure 8.15 ). Choose from any of Illustrator's thirteen different presets to see a different traced result on your screen. Figure 8.15. The Preset pop-up menu in the Control palette lets you quickly experiment with different tracing presets.![]() Figure 8.16. It doesn't look like a pop-up menu, but it is. Clicking the upside-down triangle allows you to apply a specific tracing preset when you first choose to trace an image.![]()
Exploring the Live Trace Preview OptionsOnce you've traced an image, Illustrator displays the traced result on your artboard so that you can see the results. However, Illustrator offers a variety of different settings that you can use to control how both the raster image and the traced vector result appear on your artboard.When a traced image is selected on the artboard, the Control palette updates to contain two icons that, at first glance, look like triangles. Upon closer inspection, you'll notice that one icon features a jagged edge; this icon is used to control how the raster image is previewed. The icon on the right, which has a smooth edge, is used to control how the traced vector result is previewed (Figure 8.17 ). Each of these settings is separate and can be chosen independently of the other. Figure 8.17. Once you've traced an image, you can use the two icons in the Control palette to control how the artwork appears on the artboard.![]() Previewing the Original Raster ImageIn the Control palette, the jagged triangle on the left controls how the raster image is viewed. Click once on the icon and choose from one of the four available settings (Figure 8.18) . Figure 8.18. You can preview the raster image with the Original Image setting (left), the Adjusted Image setting (center), or the Transparent Image setting (right). The No Image option is not shown for obvious reasons.[View full size image] ![]() Previewing the Traced Vector ResultIn the Control palette, the smooth triangle on the right controls how the traced vector result is viewed. Click once on the icon and choose from one of the four available settings (Figure 8.19 ). Figure 8.19. You can preview the vector result with the Tracing Result setting (left), the Outlines setting (center), and the Outlines With Tracing setting (right). The No Tracing Result option is not shown.![]() Tweaking to Get the Perfect TraceWhat makes the Live Trace feature a joy to use is the ability to make adjustments to the settings while you see the results update on your screen. Aside from the different presets that you can apply, Illustrator contains a dialog box chock full of settings that you can use to ensure that you get the results you need from the Live Trace feature.To access these settings, select a Live Trace object and click the Tracing Options dialog button in the Control palette. Alternatively, you can choose Object > Live Trace > Tracing Options. Once the Tracing Options dialog appears on your screen, you'll notice that it's split into several different sections (Figure 8.20 ). Figure 8.20. The Tracing Options dialog offers a smorgasbord of settings to achieve the perfect trace.[View full size image] ![]() Modifying the Raster AdjustmentsThe Adjustments settings found on the left side of the Tracing Options dialog apply to the raster conditioning that occurs before the image is traced.Mode. Live Trace converts a bitmap image to either 1-bit black and white, 8-bit grayscale, or 8-bit color, which you can choose from the Mode pop-up menu.Threshold. The Threshold setting determines the boundaries between pixels when using the Black and White trace setting. For example, in a gray bitmap, a high threshold setting results in more gray pixels becoming black vector objects, and thus a heavier appearance. In that same image, a low Threshold setting results in more gray pixels ignored, making for more white-colored objects and an overall lighter or more delicate appearance (Figure 8.21 ). Too low of a Threshold setting may also result in a loss of image detail. The Threshold setting is also available in the Control palette when a Black and White Live Trace object is selected. Figure 8.21. Making adjustments to the Threshold setting can have a large impact on the overall appearance of the traced result. Here are examples of an image with a variety of different Threshold settings.Chapter 1 for instruction on how to define a custom swatch library). When a custom swatch library is opened in your document, the Palette pop-up menu displays all of the available palettes (Figure 8.22 ). Live Trace then only uses the colors that appear within the custom swatch library that you choose. Figure 8.22. Loading several different custom libraries allows you to quickly experiment with a variety of different color schemes.[View full size image] ![]()
Adjusting the Vector Trace SettingsThe Trace Settings found on the right side of the Tracing Options dialog apply to the actual tracing of the image and determine how the final vector paths are drawn.Fills. When you have Fills selected, Live Trace creates closed and filled vector paths for all resulting vector objects. Fill tracing produces results that more closely match the original image, including variable-width lines that are common in marker or ink renderings (Figure 8.23 ). Fill tracing also results in more complex vectors because it needs more anchor points. Figure 8.23. When you choose the Fills setting, the traced paths appear with thick and thin edges, closely matching the original image.![]() Figure 8.24. When you choose the Strokes setting, the traced paths appear consistent and results in a less complex traced image overall.![]() Figure 8.25. This figure shows examples of a variety of path fitting settings for the same image. Notice how the paths get smoother as the number is increased but that the result doesn't match the original sketch as much.[View full size image] ![]()
Editing Live Trace PathsOnce you've achieved a trace result that you're satisfied with, you might want to edit the Bézier paths, either to delete portions of the image, or to apply your own colors, gradients, or patterns. In order to edit the vector paths of the traced object, you will need to either expand the trace, or convert the traced object to a Live Paint group.
Expanding a Live Trace ObjectWith a Live Trace object selected, click the Expand button in the Control palette. Alternatively, you can choose Object > Live Trace > Expand. You can then use the Direct Selection tool to edit anchor points and Bézier paths (Figure 8.26 ). At this point, the traced object is no longer linked to the original raster image, and the traced result can no longer be adjusted using any of the Live Trace options. Figure 8.26. Once you've expanded a Live Trace object, you can edit the paths as you would with any vector object.![]()
Converting Traced Images to Live Paint GroupsIn Chapter 4, Advanced Vectors , you learned about Illustrator's new Live Paint feature, which allows you to apply fill attributes to areas, even if they aren't fully enclosed shapes. If you've traced an image because you want to fill Chapter 4. Figure 8.27. What started out as a pencil sketch quickly turns into final art when you combine the Live Trace and the Live Paint features in Illustrator.![]() |