16. Sharing Projects

Lesson overview

In this lesson, you’ll learn how to do the following:

  • Package a file.

  • Create a PDF.

  • Create pixel-perfect drawings.

  • Use the Export For Screens command.

  • Work with the Asset Export panel.

Image

This lesson will take about 30 minutes to complete. To get the lesson files used in this chapter, download them from the web page for this book at www.adobepress.com/IllustratorCIB2021. For more information, see “Accessing the lesson files and Web Edition” in the Getting Started section at the beginning of this book.

Images

You can use various methods to share and export your projects as PDFs or to optimize your Illustrator content for use on the web, in apps, and in onscreen presentations.

Starting the lesson

Before you begin this lesson, you’ll restore the default preferences for Adobe Illustrator and open the first lesson file.

Image Note

If you have not already downloaded the project files for this lesson to your computer from your Account page, make sure to do so now. See the “Getting Started” section at the beginning of the book.

Image Note

The projects for this lesson were designed by Meng He (www.mynameismeng.com).

  1. To ensure that the tools function and the defaults are set exactly as described in this lesson, delete or deactivate (by renaming) the Adobe Illustrator preferences file. See “Restoring default preferences” in the “Getting Started” section at the beginning of the book.

  2. Start Adobe Illustrator.

  3. Choose File > Open. In the Open dialog box, navigate to the Lessons > Lesson16 folder. Select the L16_start1.ai file, and click Open.

  4. In the warning dialog that appears, select Apply To All and then click Ignore.

    Images

    There is at least one image, Ocean.jpg, linked to the Illustrator document that Illustrator can’t find on your system. Instead of replacing the missing image(s) from this dialog box, you will open the Links panel so you can see which are missing, and replace them there.

  5. If you skipped Lesson 15, the Missing Fonts dialog box will most likely appear. Click Activate Fonts to activate all missing fonts (your list may not match the figure). After they are activated and you see the message stating that there are no more missing fonts, click Close.

    Images

    Image Note

    If you don’t see Reset Essentials in the Workspace menu, choose Window > Workspace > Essentials before choosing Window > Workspace > Reset Essentials.

  6. Choose Window > Workspace > Reset Essentials to ensure that the workspace is set to the default settings.

  7. Choose View > Fit All In Window.

  8. Choose Select > Deselect, if available.

  9. To open the Links panel, choose Window > Links.

  10. In the Links panel, select the first Ocean.jpg image; it has an icon (Images) to the right of its name telling you the image is missing. At the bottom of the panel, click the Relink button (Images) to link the missing image to the original.

    Images
  11. In the dialog box that opens, navigate to the Lessons > Lesson16 > images folder, select the Ocean image, and ensure that Link is selected. Click Place.

    Images
  12. Choose Select > Deselect and then choose File > Save.

  13. Close the Links panel group.

Packaging a file

When you package a file, you create a folder that contains a copy of the Illustrator document, any necessary fonts, copies of the linked graphics, and a report that contains information about the packaged files. This is an easy way to hand off all necessary files for an Illustrator project. Next you’ll package the open file.

Image Note

If the file needs to be saved, a dialog box will appear to notify you.

  1. Choose File > Package. If you are asked to save the file, save it. In the Package dialog box, set the following options:

    • Click the folder icon (Images), and navigate to the Lesson16 folder, if you are not already there. Click Choose (macOS) or Select Folder (Windows) to return to the Package dialog box.

    • Folder name: Social

    • Options: Leave at default settings.

    Image Note

    The Create Report option, when selected, will create a package report (summary) as a .txt (text) file, which is placed in the package folder by default.

    The Copy Links option duplicates all of the linked files to the new folder it creates. The Collect Links In Separate Folder option creates a folder called Links and copies the links into it. The Relink Linked Files To Document option updates the links within the Illustrator document to link to the new copies.

  2. Click Package.

    Images
  3. In the next dialog box, which discusses font licensing restrictions, click OK.

    Clicking Back would allow you to deselect Copy Fonts (Except Adobe Fonts And Non-Adobe CJK Fonts).

  4. In the final dialog box to appear, click Show Package to see the package folder.

    Images

    In the package folder there should be a copy of the Illustrator document and a folder named Links that contains any linked images. The L16_start1 Report text file contains information about the document contents.

    Images
  5. Return to Illustrator.

Creating a PDF

Portable Document Format (PDF) is a universal file format that preserves the fonts, images, and layout of source documents created on a wide range of applications and platforms. Adobe PDF is the standard for the secure, reliable distribution and exchange of electronic documents and forms around the world. Adobe PDF files are compact and complete and can be shared, viewed, and printed by anyone with the free Adobe Acrobat Reader or other PDF-compatible software.

You can create different types of PDF files from within Illustrator. You can create multi-page PDFs, layered PDFs, and PDF/X-compliant files. Layered PDFs allow you to save one PDF with layers that can be used in different contexts. PDF/X-compliant files ease the burden of color, font, and trapping issues in printing. Next you’ll save this project as a PDF so you can send it to someone else to view.

  1. Choose File > Save As. In the Cloud Document dialog, click Save On Your Computer to save the file locally.

    Images
    Images
  2. In the Save As dialog box, choose Adobe PDF (pdf) from the Format menu (macOS) or Adobe PDF (*.PDF) from the Save As Type menu (Windows). Navigate to the Lessons > Lesson16 folder, if necessary. At the bottom of the dialog box, you can choose to save all of the artboards in the PDF or a range of artboards. Select All, then click Save.

    When creating a PDF, to save all of the artboards to one PDF, select All, or to save a subset of the artboards to one PDF, select Range and type the range of artboards. For example, in a document with three artboards, a range can be “1-3” to save all three artboards or “1,3” to save the first and third artboards.

    Image Note

    If you want to learn about the options and other presets in the Save Adobe PDF dialog box, choose Help > Illustrator Help and search for “Creating Adobe PDF files.”

  3. In the Save Adobe PDF dialog box, click the Adobe PDF Preset menu to see all of the different PDF presets available. Ensure that [Illustrator Default] is chosen, and click Save PDF.

    Images

    There are many ways to customize the creation of a PDF. Creating a PDF using the [Illustrator Default] preset creates a PDF in which all Illustrator data is preserved. PDFs created with this preset can be reopened in Illustrator without any loss of data. If you are planning on saving a PDF for a particular purpose, such as viewing on the web or printing, you may want to choose another preset or adjust the options.

  4. Choose File > Close to close the PDF without saving.

Creating pixel-perfect drawings

When creating content for use on the web, in mobile apps, in onscreen presentations, and more, it’s important that images saved from vector art look sharp. To enable designers to create pixel-accurate designs, you can align artwork to the pixel grid using the Snap To Pixel option. The pixel grid is a grid of 72 squares per inch, vertically and horizontally, that is viewable when you zoom to 600% or higher with Pixel Preview mode enabled (View > Pixel Preview).

Pixel-aligned is an object-level property that enables an object to have its vertical and horizontal paths aligned to the pixel grid. This property remains with the object when the object is modified. Any vertical or horizontal path in the object gets aligned to the pixel grid as long as the property is set for it.

Previewing artwork in Pixel Preview

When you export assets in a format such as GIF, JPEG, or PNG, any artwork that was vector is rasterized in the resulting file. Turning on Pixel Preview is a great way to be able to see what the artwork will look like when it’s rasterized. First you’ll view artwork with Pixel Preview on.

  1. Choose File > Open. In the Open dialog box, navigate to the Lessons > Lesson16 folder. Select the L16_start2.ai file, and click Open.

  2. Choose File > Document Color Mode, and you will see that RGB Color is chosen.

    Image Tip

    After you create a document, you can change the document color mode using File > Document Color Mode. This sets the default color mode for all new colors you create and the existing swatches. RGB is the correct color mode to use when creating content for the web, for apps, or for onscreen presentations.

    When designing for onscreen viewing (web, apps, etc.), RGB (Red, Green, Blue) is the preferred color mode for documents in Illustrator. When you create a new document (File > New), you can choose which color mode to use with the Color Mode option. In the New Document dialog box, choosing any document profile except Print sets Color Mode to RGB by default.

  3. Select the Selection tool (Images), and click to select the Earth icon in the middle of the page. Press Command and + (macOS) or Ctrl and + (Windows) several times to zoom in closely to the selected artwork.

  4. Choose View > Pixel Preview to preview a rasterized version of the entire design.

    Images

    Preview mode. Pixel Preview mode.

Aligning new artwork to the pixel grid

With Pixel Preview on, you’ll be able to see the pixel grid and also align artwork to the pixel grid. When Snap To Pixel (View > Snap To Pixel) is enabled, shapes that are drawn, modified, or transformed snap to the pixel grid and appear crisp. This makes most artwork, including most Live Shapes, align to the pixel grid automatically. In this section, you’ll view the pixel grid and learn how to align new content to it.

  1. Choose View > Fit Artboard In Window.

  2. With the Selection tool (Images) selected, click to select the blue button shape with the text “SEARCH” on it.

    Image Tip

    You can turn off the pixel grid by choosing Illustrator > Preferences > Guides & Grid (macOS) or Edit > Preferences > Guides & Grid (Windows) and deselecting Show Pixel Grid (Above 600% Zoom).

  3. Press Command and + (macOS) or Ctrl and + (Windows) several times until you see 600% in the View menu in the lower-left corner of the Document window (in the Status bar).

    Images

    By zooming in to at least 600% and with Pixel Preview turned on, you can see a pixel grid appear. The pixel grid divides the artboard into 1-pt (1/72-inch) increments. For the next steps, you need to see the pixel grid (zoom level of 600% or greater).

  4. Press Delete or Backspace to remove the rectangle.

    Image Note

    As of this writing, the creation tools affected by Snap To Pixel are the Pen tool; the Curvature tool; shape tools, like the Ellipse tool and the Rectangle tool; the Line Segment tool; the Arc tool; the grid tools; and the Artboard tool.

  5. Select the Rectangle tool (Images) in the toolbar. Draw a rectangle roughly the size of the one you just deleted.

    Images

    You might notice that the edges of the rectangle look a little fuzzy. That’s because Snap To Pixel was turned off in this document when shapes like this one were created, so the straight edges of the rectangle aren’t snapping (aligning) to the pixel grid by default.

  6. Press Delete or Backspace to remove the rectangle.

    Image Tip

    You can also click the Snap To Pixel option in the Properties panel with nothing selected and the Selection tool selected, or you can select the Snap To Pixel option (Images) on the right end of the Control panel (Window > Control).

  7. Choose View > Snap To Pixel to turn on Snap To Pixel.

    Now, any shapes that are drawn, modified, or transformed will snap to the pixel grid, if possible. By default, Snap To Pixel is turned on when you create a new document that uses the Web or Mobile document profile.

  8. With the Rectangle tool selected, draw a simple rectangle to make the button, and notice that the edges appear cleaner.

    Images

    The vertical and horizontal segments of the drawn artwork snap to the pixel grid. In the next section, you’ll see that you can snap existing artwork to the pixel grid. In this case, I had you redraw the shape just to see the difference.

  9. Click the Arrange button in the Properties panel and choose Send To Back to arrange it behind the “SEARCH” text.

    Image Tip

    You can press the arrow keys to move the selected artwork. The artwork will snap to the pixel grid.

  10. Select the Selection tool, and drag the rectangle into position as you see in the figure.

    Images

    As you drag, you may notice that the artwork is snapping to the pixel grid.

Aligning existing artwork to the pixel grid

You can also align existing artwork to the pixel grid in several ways, which is what you will do in this section.

  1. Press Command and – (macOS) or Ctrl and – (Windows) once to zoom out. The grid should disappear because the zoom level is less than 600%.

  2. Select the Selection tool (Images), and click to select the blue stroked rectangle surrounding the rectangle you drew.

    Image Note

    In this instance, the Align To Pixel Grid button in the Properties panel and the Object > Make Pixel Perfect command will do the same thing.

  3. Click the Align To Pixel Grid button in the Properties panel to the right (or choose Object > Make Pixel Perfect).

    The rectangle was created when View > Snap To Pixel wasn’t selected. After you aligned the rectangle to the pixel grid, the horizontal and vertical straight edges were snapped to the closest pixel grid lines. Live Shapes and Live Corners are preserved when this is done.

    Objects that you pixel-align that have no straight vertical or horizontal segments are not modified to align to the pixel grid. For example, because a rotated rectangle does not have straight vertical or horizontal segments, it is not moved to produce crisp paths when the pixel-aligned property is set for it.

    Images

    Image Note

    The Align To Pixel Grid button does not appear in the Properties panel when an open path is selected.

  4. Click to select the blue “V” to the left of the button. You may need to scroll to the left. Choose Object > Make Pixel Perfect.

    Images

    You will see a message in the Document window: “Selection Contains Art That Cannot Be Made Pixel Perfect.” In this case, this means there are no vertical or horizontal straight edges to align.

  5. Click the blue square surrounding the “V” (see the figure). Press Command and + (macOS) or Ctrl and + (Windows) several times to zoom in closely to the selected artwork.

  6. Drag the top bounding point up to make the square a bit larger.

    Images

    After dragging, notice that resizing the shape using the corner or side handles only fixes the corresponding edges (snaps them to the pixel grid).

  7. Choose Edit > Undo Scale so it remains square.

    Image Note

    Moving artwork is constrained to whole pixels when transforming via the Selection tool, Direct Selection tool, Live Shape center widget, arrow keys, and Artboard tool. The Direct Selection tool snaps anchor points and handles to pixel or subpixel locations depending on the stroke settings of the path. This snap is similar to how the Pen tool snaps when you’re creating artwork with it.

  8. Click the Align To Pixel Grid button in the Properties panel to ensure that all of the vertical or horizontal straight edges are aligned to the pixel grid.

    Unfortunately, when aligning something that small, it may move. In this case, it is no longer aligned with the center of the “V.” You will need to align the “V” with the square.

  9. Press the Shift key, and click the “V” to select it as well. Release the Shift key, and click the edge of the square to make it the key object.

  10. Click the Horizontal Align Center button (Images) and the Vertical Align Center button (Images) to align the “V” to the square.

    Images
  11. Choose Select > Deselect (if available) and then choose File > Save.

Exporting artboards and assets

In Illustrator, using the File > Export > Export For Screens command and the Asset Export panel, you can export entire artboards, perhaps to show a design in progress, or just selected assets. The exported content can be saved in several file formats such as JPEG, SVG, PDF, and PNG. These formats are optimized for use on the web, on devices, and in onscreen presentations and are compatible with most browsers, yet each has different capabilities. Once selected, the artwork is automatically isolated from the rest of the design and saved as an individual file.

Image Tip

To learn more about working with web graphics, search for “File formats for exporting artwork” in Illustrator Help (Help > Illustrator Help).

Exporting artboards

In this section, you’ll see how to export artboards in your document. This can be useful when you want to show someone a design you are working on, or to capture a design for use in a presentation, website, or app, among other uses.

  1. Choose View > Pixel Preview to turn it off.

  2. Choose View > Fit Artboard In Window.

  3. Choose File > Export > Export For Screens.

    In the Export For Screens dialog box that appears, you can choose between exporting artboards and exporting assets. Once you decide what to export, you can set the export settings on the right side of the dialog box.

  4. With the Artboards tab selected, on the right side of the dialog box, ensure that All is selected.

    Images

    You can choose to export all or a specific range of artboards. This document has only one artboard, so selecting All is the same as selecting a range of 1. Selecting Full Document will export all artwork in a single file.

  5. Click the folder icon (Images) to the right of the Export To field. Navigate to the Lessons > Lesson16 folder, and click Choose (macOS) or Select Folder (Windows). Click the Format menu, and choose JPG 80.

    Images

    In the Formats section of the Export For Screens dialog box, you can set a Scale factor for the exported asset, create (or in this case edit) a suffix for the filename, and change the format. You can also export multiple versions with different scale factors and formats by clicking the + Add Scale button.

  6. Click Export Artboard.

    Image Tip

    To avoid creating subfolders, like the folder “1x,” you can deselect Create Sub-folders in the Export For Screens dialog box when exporting.

    The Lesson16 folder should open, and you should see a folder named “1x” and, in that folder, the JPEG image.

  7. Close the folder, and return to Illustrator.

Exporting assets

You can also quickly and easily export individual assets in file formats such as JPEG, PNG, PDF, and SVG using the Asset Export panel. The Asset Export panel lets you collect assets that you might export frequently and can be a great tool for web and mobile workflows because it allows for the export of multiple assets with a single click. In this section, you’ll open the Asset Export panel and see how to collect artwork in the panel and then export it.

Image Note

There are several methods for exporting artwork in a variety of formats. You can select artwork in your Illustrator document and choose File > Export Selection. This adds the selected artwork to the Asset Export panel and opens the Export For Screens dialog box. You can choose from the same formats you saw in the previous section.

  1. With the Selection tool (Images) selected, click to select the artwork labeled “VENUS” toward the middle of the artboard.

    Images
  2. Press Command and + (macOS) or Ctrl and + (Windows) several times to zoom in to the artwork.

  3. Press the Shift key, and click to select the artwork labeled “EARTH” to the right of the selected artwork.

    Images
  4. With the artwork selected, choose Window > Asset Export to open the Asset Export panel.

    The Asset Export panel is where you can save content for export now or later. It can work in conjunction with the Export For Screens dialog box to set export options for the selected assets, as you’ll see.

    Image Tip

    To add artwork to the Asset Export panel, you can also right-click the artwork in the Document window and choose Collect For Export > As Single Asset (or As Multiple Assets) or choose Object > Collect For Export > As Single Asset (or As Multiple Assets).

    Image Tip

    To delete an asset from the Asset Export panel, you can either delete the original artwork in the document or select the asset thumbnail in the Asset Export panel and click the Remove Selected Assets From This Panel button.

  5. Drag the selected artwork into the top part of the Asset Export panel. When you see a plus sign (+) appear, release the mouse button to add the artwork to the Asset Export panel. Each group or individual object is a different asset.

    Images

    The assets are tied to the original artwork in the document. In other words, if you update the artwork in the document, the corresponding asset is updated in the Asset Export panel. Every asset you add to the Asset Export panel is saved with the panel and will stay there until you delete it from either the document or the Asset panel.

  6. Click the name of the item in the Asset Export panel corresponding to the VENUS graphic and rename it Venus. Click the name of the item in the Asset Export panel corresponding to the EARTH graphic and rename it Earth. Press Return or Enter to accept the last name.

    Image Tip

    If you Option-drag (macOS) or Alt-drag (Windows) multiple objects into the Asset Export panel, the selected content will become a single asset in the Asset Export panel.

    Images

    The asset name that appears is based on what the artwork is named in the Layers panel if you drag the asset into the panel. Also, how you name assets in the Asset Export panel is up to you. I name them so I can more easily keep track of what each asset is used for.

  7. Click the Venus asset thumbnail to select it in the Asset Export panel.

    As you add assets to the panel using various methods, you will need to first select the assets you’d like to export.

    Image Note

    If you are creating assets for use on iOS or Android, you could click iOS or Android to display a list of scaled export presets appropriate to each platform.

  8. In the Export Settings area of the Asset Export panel, choose SVG from the Format menu, if necessary.

    Images

    SVG is perfect for a website, but sometimes a co-worker may ask for a PNG version or other format of the same logo as well.

  9. Click the + Add Scale button to export the artwork in another format (in this case). Adding a scale makes the Scale value of the additional format something other than 1x, by default. Choose 1x from the Scale menu so the second asset is exported at 100% of the size of the artwork on the artboard, and ensure that Format is set to PNG.

    Images

    In this case, an SVG file and a PNG file will be created for every selected asset in the Asset Export panel. You can also set a scale (1x, 2x, etc.) if you need multiple scaled versions of the selected assets—perhaps for Retina and non-Retina displays for raster formats like JPEG or PNG. You can also add a suffix to the exported filename. A suffix could be something like “@1x” to indicate the 100% scaled version of an exported asset.

    Image Tip

    You can also click the Launch The Export For Screens Dialog button (Images) at the bottom of the Asset Export panel. This will open the Export For Screens dialog box, where you can adjust all the same settings, including a few more.

  10. With the Venus thumbnail selected at the top of the Asset Export panel, click the Export button at the bottom of the Asset Export panel to export the selected asset. In the dialog box that appears, navigate to the Lessons > Lesson16 > Asset_Export folder, and click Choose (macOS) or Select Folder (Windows) to export the assets.

    Images

    Both the SVG file (Venus.svg) and the PNG file (Venus.png) will be exported to the Asset_Export folder in separate folders.

  11. Choose File > Close as many times as necessary to close all open files.

Review questions

1. Describe what packaging an Illustrator document does.

2. Why do you align content to the pixel grid?

3. Describe how you export an artboard.

4. Name image file types that can be chosen in the Export For Screens dialog box and Asset Export panel.

5. Describe the generic process for exporting assets with the Asset Export panel.

Review answers

1. Packaging is used to gather all of the necessary pieces of an Illustrator document. Packaging creates a copy of the Illustrator file, the linked images, and the necessary fonts (if desired), and gathers those copies into a folder.

2. Aligning content to the pixel grid creates a crisp appearance at the edges of artwork. When Snap To Pixel is enabled for supported artwork, all the horizontal and vertical segments in the object are aligned to the pixel grid.

3. To export an artboard, choose File > Export > Export As (not covered in the lesson) or File > Export > Export For Screens. In the Export For Screens dialog box that appears, you can choose between exporting artboards and exporting assets. You can choose to export all or a specific range of artboards.

4. The image file types that can be chosen in the Export For Screens dialog box and the Asset Export panel are PNG, JPEG, SVG, and PDF.

5. To export assets using the Asset Export panel, the artwork to be exported needs to be collected in the Asset Export panel. Once it’s in the panel, you can select the asset(s) to be exported, set the export settings, and then export.