Chapter 12. Preparing Images for the Web

If you take digital photos, you may want to post them to a Web page or a social networking site. Whether you decide to post a snapshot of an old push mower to eBay or just want to share vacation photos with your Aunt Ruth, the considerations are much the same.

Size and speed influence most decisions regarding image preparation for the Web, and they are the central themes of this chapter. While broadband is now widely available worldwide, it’s still a good idea to optimize the size of your digital images: the smaller the image file size, the more quickly it appears, even with the fastest Internet connection.

I’m not abandoning aesthetics—after all, there’s little purpose in uploading a photograph that’s too fuzzy or distorted to be seen clearly. This chapter’s focus is also about creating compact files that look good.

If you’re looking to post a gallery of photos instead of optimizing and saving images one at a time, see Chapter 14.

Understanding Image Requirements for the Web

Preparing images for the Web presents a set of challenges distinct from commercial and ink-jet printing. Even with abundant broadband worldwide, a significant percentage of Web users have dial-up or relatively slow broadband connections. This means your images need to be small enough to download quickly while retaining color and clarity comparable to your original image.

Photoshop Elements offers some digital sleight of hand through a process called optimization. Optimization pares down and streamlines an image’s display information based on settings you can choose among and preview to determine the best combination of values.

By limiting the number of colors in an image, or by selectively discarding pixels that are less critical than others, Elements removes information from an image and reduces the associated file size. Once an image has been streamlined in this way, it is optimized image.

image

image The original illustration (top) contains a great deal of detail and subtle gradations of tone and color. The over-optimized version (bottom) is greatly simplified and contains far less color and image information.

Photoshop Elements offers four file format options for optimizing an image: JPEG, GIF, PNG-8, and PNG-24. Generally speaking, JPEG and PNG-24 are most appropriate for images that contain subtle transitions of tone and color (like photographs), while GIF and PNG-8 are best for graphics or illustrations containing a lot of flat color or typography image.

image

image The photograph on the left, with its subtle and varied tones and color, is a good candidate for JPEG optimization, whereas the flat, bold colors and use of typography in the illustration on the right make it more appropriate for GIF optimization.

About the Save for Web Dialog

The Save for Web dialog might be more appropriately called the “Prepare Web Images” or “Optimization” dialog. Within it, you’ll find all the tools, drop-down menus, and text fields necessary to transform any digital photograph, painting, or illustration into a graphic that will work well in a Web browser.

The original and optimized image previews, the heart of this dialog, provide instant visual feedback whenever setting adjustments are made. Information fields below the image previews constantly update to reflect the current optimization format, file size, and download times. And at any time in the optimization process, you can preview and verify exactly how your image will appear in any Web browser loaded on your computer.

Optimizing an Image for the Web

With the Save for Web command, Photoshop Elements provides a simple, automated method that saves an optimized copy of your original image. You may want to experiment with the custom optimization settings, but the predefined settings should satisfy the requirements of most of your optimization tasks.

To save an image for the Web:

  1. Open the image you want to optimize.
  2. From the File menu, choose Save for Web image, or press Ctrl+Alt+Shift+S. The Save for Web dialog opens on top of the active image window, displaying the image in side-by-side original and optimized previews image.

    image

    image Open the Save for Web dialog from the File menu.

    image

    image The Save for Web dialog. The image on the left shows the original image. The image on the right shows a preview of what the same image will look like after it’s been optimized.

  3. From the Preset drop-down menu, choose a predefined optimization setting image.

    image

    image Choose from the list of predefined settings for JPEG, GIF, or PNG optimization formats.

    The various drop-down menus within the Preset portion of the dialog change to reflect the setting you’ve selected image, as does the optimized preview in the center of the dialog.

    image

    image Once you’ve chosen a predefined optimization setting, the rest of the options change accordingly. Here, the options have automatically changed to reflect the Medium JPEG optimization format.

  4. Click the OK button image.

    image

    image Click OK to save your optimized image.

  5. In the Save Optimized As dialog, type a new name for your file and verify that the file type matches the optimization format you chose in the Save for Web dialog image.

    image

    image Enter a name and destination for your optimized file in the Save Optimized As dialog.

  6. Choose a location for your file and then click Save.

    The Save Optimized As and Save for Web dialogs automatically close, and your optimized image is saved to the location you specified.

Adjusting Optimization Settings

You’re not limited to using predefined settings to optimize your images. Fine-tune the settings further by using the collection of drop-down menus, checkboxes, and sliders available in the Settings portion of the Save for Web dialog. For example, if you want your JPEGs to retain a little more image quality, you can change the default quality setting for a Medium JPEG image from 30 to 45, improving its sharpness and detail without increasing its size much. As you make adjustments, refer to the optimized image preview where you can see how your changes affect the image, as well as view its current potential file size and download time.

To apply custom JPEG optimization settings to an image:

  1. Open the image you want to optimize, then choose File > Save for Web to open the Save for Web dialog.
  2. From the Preset drop-down menu, choose one of the predefined JPEG settings image.

    image

    image If you like, choose one of the predefined JPEG settings to use as a baseline for your own custom settings.

    You don’t have to choose one of the presets, but they can serve as a good jumping-off point for building your own settings. For instance, if you decide small file size and quick download time are priorities, you might want to start with the predefined JPEG Low setting and then customize the settings from there.

  3. Verify that JPEG is selected from the Optimized file format drop-down menu, or if you’ve decided to skip step 2, choose JPEG from the Optimized dropdown menu image.

    image

    image Optimization formats can be changed at any time from the drop-down menu.

  4. To set the image quality, do one of the following:

    • From the compression quality dropdown menu, select a quality option image.

    image

    image Choose from five basic quality options for JPEG images.

    • Drag the Quality slider while referring to the optimized preview image.

    image

    image Once a quality option has been selected, use the slider control to fine-tune it.

    The Quality slider has a direct impact on the Quality drop-down menu, and vice versa. Remember that a setting in the Very High or Maximum range will create a file six to eight times larger than one saved in the Low range.

  5. Select the Progressive checkbox if you want your image to build from a low-resolution version to its final saved version as it downloads in a Web browser image.

    image

    image The Progressive feature draws your JPEG image incrementally on a Web page as it downloads, eventually displaying the image in its final state.

    This option is more critical for large, high-quality images with download times in the tens of seconds. Rather than leaving a blank space, the low-res image appears almost immediately, giving your Web page visitors something to look at until the complete file is downloaded.

  6. Select the ICC Profile checkbox if you’ve previously saved a color profile with your image and want that information preserved in your optimized image.

    Unless your photo or art contains some critical color (a logo with a very specific corporate color, for instance), leave this box unchecked. Not all browsers support color profiles, and the inclusion of the information can increase file size significantly.

  7. If your original image contains transparency, see “Making a Web Image Transparent” later in this chapter.
  8. Click the OK button in the Save for Web dialog to rename and save your optimized image.

To apply custom GIF optimization settings to an image:

  1. Open the image you want to optimize, then choose File > Save for Web to open the Save for Web dialog.
  2. From the Preset drop-down menu, choose one of the predefined GIF settings, or choose GIF from the Optimized file format drop-down menu image.

    image

    image Choose the GIF setting to optimize illustrations, vector art, or type.

  3. From the Color Reduction Algorithm drop-down menu, choose a color lookup table to apply to your image image. (See the sidebar “About Color Models and Color Lookup Tables,” earlier in this chapter.)

    image

    image The GIF format offers several schemes for interpreting and displaying the color in your image.

  4. From the Colors drop-down menu, choose the maximum number of colors that will appear in your image image.

    image

    image A GIF image can contain from 2 to 256 colors.

    You can choose from the list of eight standard color panel values, use the arrows to the left of the text field to change the values in increments of one, or simply enter a value in the text field and press Enter.

    When formatting GIF images, the number of colors you specify will have a larger impact on final file size and download time than any other attribute you set. Naturally, the fewer colors you select, the smaller the image file size will be, so experiment with different values, gradually reducing the number of colors, until you arrive at a setting you find acceptable image.

    image

    image This illustration was optimized with three GIF color panels containing progressively fewer colors. From left to right, the illustrations were saved with panels of 16, 8, and 4 colors, creating file sizes of roughly 88K, 72K, and 50K, respectively.

  5. Use the Dither slider to specify a percentage for the dither image.

    image

    image Since diffusion is the default dither option for any GIF image you create in the Save for Web dialog, you can control the amount of dithering that occurs: from 0 to 100 percent.

    Higher percentages create finer dither patterns, which tend to preserve more detail in images where limited color panels have been specified.

    Although not accessible from the Save for Web dialog, Photoshop Elements gives you the option to save a GIF image with one of three different Dither options. (For more information, see the sidebar “Choosing Dithering Options.”)

  6. If you want your image to build from a low-resolution version to its final saved version as it downloads in a browser, select the Interlaced checkbox image.

    image

    image The Interlaced feature works like JPEG’s Progressive option to draw your image incrementally on a Web page as it downloads.

    Interlacing a GIF image works in much the same way as applying the Progressive option to a JPEG image. If you choose not to select the interlace option, your image won’t display on a Web page until it’s completely downloaded.

  7. If your original image contains transparency, see “Making a Web Image Transparent” later in this chapter.
  8. Click the OK button to rename and save your optimized image.

Tip

If you want to save an image in the PNG-8 format, you’ll notice it uses all the same options as for GIF, and the procedures for applying custom PNG-8 settings will be exactly the same as those for GIF. The only options available for PNG-24 are transparency and interlacing.

Making a Web Image Transparent

In just a few simple steps, you can preserve the transparency of any image using options available in the GIF formatting settings. Once transparency has been set, an image of any shape (even one with a transparent cutout) can be placed on a Web page and made to blend seamlessly—matted—with its background.

To apply transparency to an image:

  1. Open the image you want to make transparent.
  2. By default, Elements creates a single layer for an image called Background image. In the Layers panel, double-click the Background layer, change its name in the Name field to something like “Regular Layer” image, and then click OK.

    image

    image The Background layer is created by default when an image is opened, but it doesn’t allow transparency.

    image

    image Rename the background layer so you can create transparency in the image.

  3. Using any combination of selection tools you choose, select the part of the image that you want to be transparent. (See Chapter 5, “Making Selections.”)
  4. Choose Edit > Delete to remove those selected parts of the image. A checkerboard pattern fills those areas, indicating they’re now transparent image.

    image

    image Select the parts of the image to remove, and use Delete to create a transparent background.

  5. Choose File > Save for Web to open the Save for Web dialog.
  6. Select any one of the GIF formats from the Preset drop-down menu.
  7. If it’s not already selected, click to select the Transparency checkbox.

    The image in the optimized preview area will be displayed against a transparency grid pattern image.

    image

    image GIF optimization offers the added bonus of preserving transparency in your Web-bound images.

  8. To select the color that will be used to blend, or matte, your image with the Web page background color, choose one of these two options:

    • Click the Matte color box to open the Color Picker; then select a color from the main color window or enter color values in either the HSB, RGB, or Web color space text fields image.

    image

    image Choose a matte color from the Color Picker to match your intended Web page background.

    • From the Matte drop-down menu, choose a color option image.

    image

    image Choose an option from the drop-down menu to use a preset color.

    Only the semitransparent pixels around the edges of the image are filled with the matte color. If the matte color matches the color of the Web page background, the transition between the transparent image and its background will be seamless image.

    image

    image The color you select from the Matte drop-down menu or color box fills in the semitransparent pixels around your image, helping to maintain a smooth edge and creating a seamless transition when the image is placed on a Web page of the same color.

Tip

JPEG doesn’t support true transparency, but you can set transparent areas in your source image with the background of the Web page for which the JPEG image is intended. Follow the steps in the earlier task, “To apply custom JPEG optimization settings to an image,” and then click the Matte color box to open the Color Picker. Select a color; then click OK. The transparent areas fill with the matte color.

Tip

If your Web page will use a patterned background, set the matte color to None; otherwise, you’ll get a distracting halo of color around the image.

Tip

The Eyedropper Color option is helpful only if the color of your Web page background also happens to be present in your image. The Other option simply opens the Color Picker. You’re better off using the Matte drop-down menu only when selecting the White, Black, or None options.

Previewing an Image

Before you commit to saving your optimized image, you should see exactly how it will appear in a Web browser window. Although the Save for Web optimized preview gives you a good approximation of how the final image will look, there’s no substitute for seeing the image displayed in its natural environment.

Additionally, you can remain within the Save for Web dialog to preview your image as if it were viewed on an older, lower-end system, limited to just 256 colors (rare, but still out there). This can be helpful, because it allows you to design primarily for most current computer systems while giving you the opportunity to fine-tune your settings to accommodate the limited display capabilities of older systems. Note that this is only a preview and in no way affects your actual image file or its settings.

To preview an image in a Web browser:

  1. Open the image you want to preview, then choose File > Save for Web to open the Save for Web dialog.
  2. At the bottom of the Save for Web dialog, choose a Web browser or click the current browser icon on the Preview In drop-down menu image.

    image

    image You can open your optimized image directly in a browser for previewing.

    The browser opens displaying the optimized image plus its dimensions and the settings you specified image.

    image

    image When your image opens in a browser, it’s accompanied by all of the settings you specified in the Save for Web dialog.

  3. Close the browser window to return to the Save for Web dialog.

To preview an image as it would display on older monitors:

  1. From the preview menu in the Save for Web dialog, choose Browser Dither image.

    image

    image Select Browser Dither from the preview menu if you want to view your image using a limited Web-safe panel.

    The image in the optimized preview window appears just as it would on an 8-bit (256-color) monitor, allowing you to anticipate what this image will look like on older computer systems image.

    image

    image When you select Browser Dither, the optimized preview changes to display your image as it would appear on an older, 256-color monitor.

  2. To turn off the browser dither preview, choose Browser Dither again from the preview menu.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.157.182