In This Chapter
Tracing a raster image using a preset
Applying custom tracing settings
Expanding a tracing into paths
Using the new Image Trace panel, you can easily convert any digital or scanned photo to editable vector art. The results can range from a close simulation of the shapes and colors in the photo to black-and-white shapes or line work. The tracing features do an impressive job, and produce more accurate, cleaner paths and more accurate color than in previous versions of Illustrator. You may still need to do some cleanup or editing work on the resulting vector shapes afterward, but less so than before.
You can use a built-in preset (a set of presaved settings) from the Image Trace panel as a starting point for a tracing and/or choose from a wide array of options. And because traced objects are live, you can also use the panel to refine the results. Among the numerous settings that you can specify are the number of colors used, a color palette, and the precision with which the image is traced.
In this chapter, you will learn how to apply preset and custom tracing settings, as well as create custom tracing presets. After tracing an image, you will use the Expand command to convert the results to editable paths.
In these steps, you’ll trace a raster image using a tracing preset and a few basic controls. Because the results of a tracing are live, you can alter settings on the panel to modify the tracing at any time — even after you close and reopen your document. When you’re satisfied with the tracing results, the final step is to convert the tracing to vector paths (see pages 235–236).
1. With an Illustrator document open, use File > Place (with the Link option unchecked) to place a raster image (A, next page). It can be a Photoshop EPS, TIFF, JPEG, or PSD image file, or scanned artwork. Note: To learn how to use the Place command, see page 303.
Note: If the Photoshop Import Options dialog opens, click Flatten Layers to a Single Image to import the image as just one flattened layer.
For faster tracing, use an image that has a resolution of 150 ppi or less.
2. Select the image to be traced via the Selection tool or the Layers panel.
3. Choose the Tracing workspace or open the Image Trace panel.
4. When you do either of the following, the Preview box is checked automatically:
Click one of the six preset buttons at the top of the panel.
Choose a preset from the Preset menu.B–C
Note: An alert dialog may appear, informing you that the tracing may proceed slowly. If you want to make it run faster, click Cancel, then reduce the resolution of the image in Photoshop or via Object > Rasterize in Illustrator. Click OK in the alert.
5. A progress bar appears onscreen while Illustrator traces the image, then an “Image Tracing” listing for the traced object appears on the Layers panel.
From the View menu, choose an option to view the tracing result, the tracing result with outlines, the source image, or a combination thereof (A–B, next page).
6. Optional: To change the preset, repeat step 4 (C–D, next page).
Here you will learn how to modify a tracing using custom options on the Image Trace panel, beginning with the options for controlling colors.
1. Open a raster image for tracing (see step 1 on page 227).A
2. Via the Selection tool or the Layers panel, select an image object to be traced or an existing tracing.
3. Choose the Tracing workspace or open the Image Trace panel . On the panel, uncheck Preview.
1. To control the color of the tracing, from the Mode menu on the Image Trace panel, choose Color, Grayscale, or Black and White.
2. If you chose Color in the preceding step, do one of the following:
Choose Automatic or Full Tone from the Palette menu to generate tracing colors from colors in the photo. Use the Colors slider or enter a percentage to control the fidelity of the colors — whether they closely (More) or loosely (Less) match the colors in the image (A–B, next page).
Choose Limited from the Palette menu to use a very reduced palette of image colors. Use the Colors slider to set the exact number of colors to appear in the tracing (A, page 232).
To control specifically which colors are used for the tracing, create one or more color groups on the Swatches panel, then choose Document Library from the Palette menu on the Image Trace panel. If you want to further limit the colors to one color group, click to open the Colors menu, then click a color group (B, page 232).
To have Illustrator use colors in a swatch library for the tracing, open a library via the Swatch Libraries menu on the Swatches panel, then choose the library name from the Palette menu on the Image Trace panel.
3. To view your settings in the tracing, click Trace or check Preview. When the updating is finished, uncheck Preview.
4. If you chose the Mode setting of Grayscale, set the Grays value to control how closely each color in the image is matched to one of 256 levels of gray.
If you chose the Mode setting of Black and White, set the Threshold value (the default value is 128). All pixels darker than this value will be converted to black, and all pixels lighter than this value will be converted to white.
1. If the Advanced options aren’t showing on the Image Trace panel, click the arrowhead.A
2. To control how closely the traced paths follow the edges of shapes in the image, do the following:
Set the Paths percentage to control how closely the tracing translates image details into paths. The lower the Paths value, the fewer paths are generated, and the less precise the detail.
Set the Corners percentage to control the extent to which Illustrator uses corners (More) to define areas in the image versus curves (Less). The higher the Corners value, the more closely the resulting paths will fit details in the image.
Set the Noise value (pixel size) to control the threshold above which small details in the image are traced. The lower the Noise value, the greater the number of resulting paths.
Click the Method: Abutting button to generate adjacent shapes that don’t overlap, or click the Overlapping button to allow smaller shapes to overlap and be stacked above larger shapes (smaller shapes won’t knock out any larger ones below them).
3. To judge your settings thus far, click Trace or Preview to generate a tracing, then uncheck Preview when the updating process is complete.
4. If the Mode setting is Black and White, you can check Create: Fills to produce filled paths and/or Strokes to produce stroked paths. If you check Strokes, also specify the maximum Stroke width (in pixels) an image area must have to become a stroke; areas wider than this value will become a fill. Also, if you want Illustrator to apply a fill of None to any white areas in the tracing, check Ignore White; those areas will become transparent.
5. Optional: Check Snap Curves to Lines to have Illustrator create straight edges from slightly curved lines. (Uncheck this option if small white gaps appear in your tracing.)
6. Check Preview again, and make any needed adjustments to the settings (A–B, next page).
7. Optional: To save your Image Trace settings as a preset, so you can apply them easily to any image, from the Manage Presets menu, choose Save as New Preset. In the Save Image Trace Preset dialog, type a name for the preset, then click OK. Saved presets are available on the Preset menu on the Image Trace and Control panels.
Press and hold the visibility icon on the Image Trace panel to display just the source image temporarily and hide the tracing.
The Expand command converts a tracing to standard paths, which can then be selected and recolored, reshaped, or transformed like any other paths in Illustrator. Be aware, however, that once a tracing object is expanded, you can no longer change its settings via the Image Trace panel.
1. Trace a placed image in your document (see pages 227–234).
2. Via the Layers panel, duplicate the Image Tracing object to preserve its live features, and keep the duplicate object selected.
3. On the Control panel, click Expand. When the command is done, a group of paths appears on the Layers panel.
4. Deselect. To locate individual paths, turn on View > Smart Guides (with the Object Highlighting option checked in Illustrator/Edit > Preferences > Smart Guides) and pass the Selection tool over areas in the artwork.
5. Click the group, then press Cmd-Shift-G/Ctrl-Shift-G twice to ungroup it.
6. You can edit the objects any way you like. Here are some suggestions:
Select or isolate, then recolor or reshape any of the objects.A
To simplify color areas, unite multiple selected paths via the Unite button on the Pathfinder panel (under Shape Modes); see page 354.B (See also A–C, next page.)
To delete extraneous paths, select them with the Selection tool, then press Delete/Backspace; or multiple-select their listings on the Layers panel, then click the Delete Selection button. Be patient; this can be painstaking work.
To create a color group from the expanded results, select either the whole group or some objects, then click the New Color Group button on the Swatches panel. In the New Color Group dialog, enter a name, click Selected Artwork, then click OK.
18.223.195.82