Understanding Image Requirements for the Web 290
About the Save for Web Dialog 291
Optimizing an Image for the Web 292
Adjusting Optimization Settings 296
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.
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 .
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 .
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.
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:
The various drop-down menus within the Preset portion of the dialog change to reflect the setting you’ve selected , as does the optimized preview in the center of the dialog.
The Save Optimized As and Save for Web dialogs automatically close, and your optimized image is saved to the location you specified.
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:
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.
• From the compression quality dropdown menu, select a quality option .
• Drag the Quality slider while referring to the optimized preview .
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.
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.
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.
To apply custom GIF optimization settings to an image:
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 .
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.”)
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.
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.
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:
The image in the optimized preview area will be displayed against a transparency grid pattern .
• 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 .
• From the Matte drop-down menu, choose a color option .
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 .
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.
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.
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.
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:
The browser opens displaying the optimized image plus its dimensions and the settings you specified .
To preview an image as it would display on older monitors:
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 .
3.17.157.182