Chapter 30. Getting It on the Web

In This Chapter

  • Understanding Web optimization

  • Understanding Web-safe colors

  • Optimizing type for screen viewing

  • Optimizing images for Web hosting

  • Creating Web galleries

When we talk about optimizing images for Web viewing, we're also talking about viewing files on computer monitors, TVs, iPods, and other screen devices. After all, viewing Web pages at this time in technology history requires viewing Web pages on a screen of some kind. This chapter presents concepts related to preparing and viewing files on the Web, as well as sharing files for viewing on screen devices.

There are a few variances between Web-viewing photos and screen-viewing photos. It is important to use a color palette that can display the same colors on Web-page images whatever the viewer's computer operating system.

In this chapter, we talk about preparing images for Web-hosting and screen viewing, working with color palettes optimized for Web-hosted images, preparing type for Web and screen viewing, and creating Web galleries to upload your files to a Web service.

Getting It on the Web

Understanding Basic Web Optimization

If you've read through chapters in any of the previous Books, you are aware of some of the differences between files you prepare for print and those that are used for Web pages.

To optimize images for Web viewing, you want to reduce the file size for every image uploaded to a URL. If you download files from your camera or card reader (as we explain in Book II, Chapter 1) or prepare files for print (as we explain in Book IX, Chapter 2), you must often reduce the file sizes for Web-hosted images in order to ensure faster downloads.

Anyone viewing a Web page is likely to get impatient if file sizes are large and the download times are extraordinary. Getting files to the smallest file size without compromising image quality is the goal of every Web designer.

Choosing a resolution

Your first effort at optimizing files for Web hosting involves obtaining the best resolutions for Web-hosted files.

On the Macintosh, Web-hosted files are optimum at 72 ppi (pixels per inch); on Windows resolutions of 72 and 96 ppi are optimum for Web hosting.

Before moving on to other optimizing tasks, it's best to downsample images to either 72 or 96 ppi. As a standard, you can set the resolution to 72 ppi, confident that all Web browsers will display the images at the same size.

To downsample an image, do the following:

  1. Open an image in Full Edit mode.

  2. Choose Image

    Choosing a resolution

    The Image Size dialog box opens, as shown in Figure 3-1.

  3. Set the dimensions.

    Type the new dimensions in either the Width or Height text box for the document size. By default, the proportions are constrained so when you type a value in either text box, the other size is automatically supplied by Elements.

    The Image Size dialog box.

    Figure 30.1. The Image Size dialog box.

  4. Check the Resample Image check box and choose a resampling method from the drop-down menu.

    By default, the resampling method used is Bicubic, which provides the best results for continuous-tone images such as photos. You have other options in the drop-down list that work better with illustrated art, line art, and other types of images. For more information on the methods of downsampling, see Book III, Chapter 1.

  5. Enter the desired resolution in the Resolution field.

  6. Click OK.

    The file is downsampled according to the settings made in the Image Size dialog box.

Upsampling images

As a general rule, avoid upsampling images — sizing an image up with the Resample Image check box enabled in the Image Size dialog box. We cover some of the pitfalls for upsampling images in Book III, Chapter 1. We also point you to a third-party plug-in that can be useful if you absolutely have to size up images.

Rasterizing files

Rasterizing files is the process of converting vector artwork to raster artwork. Artwork created in programs like Adobe Illustrator and CorelDraw are typically vector art files. Vector objects in Elements can be type as well as some shapes that are created on vector layers.

When you flatten layers in Elements you rasterize the vector layers. When you open vector art such as Adobe Illustrator files, CorelDraw files, or PDF files, you rasterize the artwork. To learn more about raster versus vector art, see Book III, Chapter 1. To learn more about type on layers, see Book V, Chapter 3.

Rasterizing vector artwork on layers in Elements converts the artwork to pixels at the resolution of the open file where the vector artwork is added. When you open a file containing vector art, you can choose to rasterize the artwork at a user-defined resolution.

Choosing File
Rasterizing files
Open

When you open artwork containing vector art, you see a dialog box where you control the options for rasterizing the file. In Figure 3-2, we opened a PDF document. The Import PDF dialog provides us some controls for determining the size and resolution.

The Import PDF dialog box.

Figure 30.2. The Import PDF dialog box.

Unlike raster art, upsizing a vector art file does not degrade the image. Because the artwork is not yet pixels, you can rasterize a vector file to any size you like. When preparing these images, you want both the physical dimensions and the resolution to be the best for your Web pages.

Selecting a color mode

In Book III, Chapter 2, we cover all the color modes supported by Elements. When you create images for Web pages, all the color modes available in Elements are acceptable for Web graphics. Your choices for color modes include

  • Bitmap: The bitmap color mode is generally used for line art. Images such as black-and-white logos might be scanned as line art and, therefore, be rendered as bitmap images. After you have a bitmap image in Elements, you can save the files as GIF or PNG, but you don't have an option for using the Save for Web command. It's generally best to convert bitmap images to grayscale first, and then save the files for the Web.

  • Grayscale: Grayscale images can be saved for Web hosting.

  • Indexed Color: Indexed color images provide you some options for reducing the number of colors in a file to get smaller file sizes. Continuous-tone images, such as photographs, generally won't look as good onscreen unless they are saved as RGB color images. However, artwork such as color logos can be reduced in file size by limiting the number of colors to fewer than 256 without degrading image quality.

  • RGB color: RGB is best used with continuous-tone images.

Understanding file formats

Elements has a number of different file formats for saving files. However, only a few of the long list of supported file formats work with Web graphics. We cover all the formats in Book III, Chapter 2. For a little review, here are the formats you can use when preparing files for Web hosting:

GIF

GIF is one of the popular file formats you find on many Web sites. GIF files are saved as indexed color where the total number of colors in an image can be reduced to fewer than 256 in order to get smaller file sizes. You can also use the GIF format when saving images that display animated effects.

When you choose File

GIF
  • Palette: Open the Palette drop-down list and you can choose from a number of different color-palette options. Among your choices is the Web palette. Making this choice reduces the total colors from the default 256 to 217. The 217 colors are known as Web Safe colors, meaning that these colors look the same on both the Macintosh and Windows operating systems.

    The Indexed Color dialog box opens when you save files as Compuserve GIF.

    Figure 30.3. The Indexed Color dialog box opens when you save files as Compuserve GIF.

  • Colors: You can reduce colors lower than the default 256 by typing a number in the Colors text box. The more colors you eliminate the lower the file size. However, if you reduce colors in continuous-tone images, you notice severe contrast between tones. This contrast is likely to produce degraded images. Furthermore, reducing colors in artwork too far may produce other unwanted results. You need to experiment a little when reducing colors by checking the Preview check box and viewing the image before actually saving. What you see on your screen is what you get. If the Preview looks good, go ahead and click the OK button.

  • Forced: This option is available with bitmap images. You can save as Black and White and when the Transparency check box is enabled, the whites appear as transparent.

  • Matte: When you have transparency in an image, you can use a matte color for the transparent areas. Your choices include a list of preset colors as well as a Custom option for you to set the color to a custom color within the palette you choose.

  • Dither: When indexed files are saved and the colors contain up to a maximum of 256 colors, you need a way to simulate color transitions. This is handled through a dithering process whereby the color transitions simulate a view that appears to have more than 256 colors. Your dither choices include Diffusion, Pattern, and Noise. For continuous tone images, the Diffusion dither produces the least-obvious color transitions.

  • Preserve Exact Colors: Check this box to preserve colors that have exact matches to the color palette you choose.

JPEG

JPEG is also one of the most popular file formats you find on Web pages. JPEG images can be saved as progressive JPEGs to permit the image file to be downloaded progressively (in stages, in other words), This format supports some great file compression. When you save as JPEG, the JPEG Options dialog box opens as shown in Figure 3-4. Your options in this dialog box include

  • Matte: This option is the same as when saving as GIF.

    The JPEG Options dialog box.

    Figure 30.4. The JPEG Options dialog box.

  • Quality: Type a value between 1 and 12 for the amount of compression you want to apply to the saved file. JPEG is a lossy file format, meaning that data are thrown away during compression. The lower the number, the more data are thrown away. If you reduce the value too low, you see obvious image degradation. Keep the Preview check box checked, and you can dynamically see the results your tweaking has on the image before clicking OK.

    The drop-down menu adjacent to the Quality value offers you five settings. When making a menu choice, the Quality value changes respective to the menu choice. Additionally, you can move the slider to change the value in the Quality text box.

    Tip

    When previewing different compression options, be sure to zoom in on your photos. If the photo is fit in the Image window, you may not see the results of the compression selections you make when the Preview check box is checked. If you start with the image fit within the Image window, you can keep the JPEG Options dialog box open and press Ctrl/@

    The JPEG Options dialog box.
  • Format Options: You have three choices. The first two use line-by-line passing and an optimized encoding system to display images. The Progressive option displays images using several passes. You specify the number of passes in the Scans drop-down menu, where you can choose from 3 and 5.

JPEG 2000

This format is a newer JPEG format that provides you with options for, among other things, saving files compressed without data loss. Choose File

JPEG 2000
The JPEG 2000 dialog box.

Figure 30.5. The JPEG 2000 dialog box.

  • File Size: Type in a value for the file size you want and Elements adjusts compression to make the file fit within the specified size.

  • Lossless: Check this box for lossless compression, meaning no data are tossed away when the file is saved.

  • Fast Mode: Check this box for quick file encoding.

  • Quality: Type a value or adjust the drop-down slider for a quality setting.

  • Include Metadata: Check this box to make metadata accessible. For more information on metadata, see Book II, Chapter 2.

  • Include Transparency: Check this box to preserve transparency when transparency is included in the file.

  • JP2 Compatible: This check box is enabled by default to make the file compatible with the JP2 format.

  • Optimization Order: When it comes to the order in which images are optimized, you have the following three choices:

    • Growing Thumbnail: This option saves the file with an animated effect to display a thumbnail of the image with successive zoom views until the full view is loaded.

    • Progressive: This option saves the file with a progressive loading of the file from low to high resolution.

    • Color: Use this option to load the image in entirety without progression.

  • Download Rate: Choose a bandwidth minimum from the Download Rate. If you expect people to use cell phones to download Web pages, use the default 14.4 Kbps option. For higher-speed connections, make a choice from the other options in the drop-down menu.

  • Preview: Click the Preview button to preview the file as it will be loaded on a Web page.

    Warning

    If you use JPEG2000 format for Web images, most Web browsers require a special plug-in to view the images.

PNG

PNG supports two different formats — PNG-8 and PNG-24. You can save files as PNG-8 using the Save As dialog box. However, using the Save As command doesn't provide you all the options that can be set for PNG files. (In fact, all you get from the Save As dialog box are the rather paltry options shown in Figure 3-6.) If you want to use the PNG-24 format or take advantage of more options choices for PNG-8, you must use the Save for Web dialog box. See "Optimizing Images with Save for Web" later in this chapter.

The PNG Options dialog box when using Save As and choosing the PNG format.

Figure 30.6. The PNG Options dialog box when using Save As and choosing the PNG format.

Using a Web-Safe Palette and Hexadecimal Colors

When working with indexed color files, you have a maximum of 256 colors available in the Indexed Color palette. Compare that value with the 16.7 million colors that you have available with RGB color.

When you convert an RGB image to indexed color, the colors outside the Indexed Color spectrum are dithered to simulate colors that more closely resemble an image in RGB mode.

Out of the 256 colors that you find in the Indexed Color palette, 39 colors do not look the same in different operating systems. The color display is determined by the OS for the Macintosh and Windows computers, and it turns out that these operating systems produce 39 different color values that cannot be viewed identically across platforms. Therefore, we have 217 out of 256 colors that are viewed identically by both operating systems.

Specifying a foreground Web Safe color

The 217 colors are referred to as being within a Web Safe color palette, and Elements makes it easy for you to work with the palette when converting color images, creating type, and creating graphic elements such as buttons and icons.

To specify a color within the Web Safe color palette, do the following:

  1. Open Full Edit mode.

  2. Click the Foreground color swatch in the Tools panel.

    The Select Foreground Color dialog box opens.

  3. Click Only Web Colors.

    Only the colors within a Web Safe color palette are displayed in the dialog box.

  4. Click in the large color swatch to make a color selection.

    You can scroll the hues by moving the slider to the right of the large color swatch. When you enter the hue range of a color you want, click in the swatch as shown in Figure 3-7.

    Note

    The color choice you make in the Select Foreground dialog box reports the hexadecimal value of the color. In Figure 3-7, the value is 993333. You can use this value in HTML code when creating Web pages to specify background color and color for other Web page elements.

    Check Only Web Colors to display the Web Safe color palette.

    Figure 30.7. Check Only Web Colors to display the Web Safe color palette.

  5. Click OK.

    The Web Safe color you selected is loaded in the Foreground color swatch in the Tools panel. When you fill selections and use the painting and marking tools, the color you apply is a Web Safe color. For more information on filling selections and painting, see Book IV, Chapter 1.

Using a Web Safe palette

If you create various elements and objects that you want to include in a Web page design, you want to open a palette and work with Web Safe colors. To do so, follow these steps:

  1. Open Full Edit mode.

  2. Open the Color Swatches palette.

    Choose Window

    Using a Web Safe palette
  3. Load a Web Safe palette.

    Open the drop-down menu in the Color Swatches palette and choose from Web Hues, Web Safe Colors, or Web Spectrum as shown in Figure 3-8. The colors you work with from any of these color swatch libraries are within the Web Safe color spectrum.

Choose a Web Safe color palette from the drop-down list.

Figure 30.8. Choose a Web Safe color palette from the drop-down list.

Making Type Look Good Onscreen

Adding type to images or creating type on a blank, new file (for example, one that creates a banner on a Web page) is something that you do frequently in Elements if you're a Web page designer.

You need to take few precautions when creating type for the Web. These include

  • Setting the file size and resolution before creating the type.

    Don't rely on resampling images when you have type as either a standalone element or an addition to photos and layouts.

  • Using Web Safe colors.

    Set the foreground color from the Web Safe color palette, or choose a color from the Color Swatches library of Web Safe colors.

  • Being certain to use anti-aliased type.

    When you create type, be certain the Anti-Aliased icon is enabled in the shortcuts bar, as shown in Figure 3-9.

    When creating type, click the Anti-Aliased tool in the Options Bar.

    Figure 30.9. When creating type, click the Anti-Aliased tool in the Options Bar.

When you anti-alias type, Elements creates some pixels of different color values at the edges of your type to simulate a smoother type appearance. If you don't anti-alias the type, the edges appear jagged. In Figure 3-10, you see type created on the left without anti-aliasing. On the right, you see the same type created with anti-aliasing.

We cover a lot more related to working with type in Book V, Chapter 3. Look over that chapter to learn much more about specifying type.

Type created without anti-aliasing (left) and with anti-aliasing (right).

Figure 30.10. Type created without anti-aliasing (left) and with anti-aliasing (right).

Optimizing Images with Save for Web

The save options you have available in the Save As dialog box enable you to save files in formats that are compatible with Web-hosted images. However, the options you have in the Safe As dialog box are much more limited than the ones available to you in the Save for Web dialog box.

In the Save for Web dialog box, you can optimize images and create previews to simulate download times. Even if you don't tweak the sampling and/or resolution of your files, you can rely on the Save for Web dialog box to offer you many other optimization features.

Choose File

Optimizing Images with Save for Web
The Save for Web dialog box.

Figure 30.11. The Save for Web dialog box.

The option choices you have in the Save for Web dialog box are covered in Book III, Chapter 2. Look over that chapter to explore all the possible options.

Creating an Online Gallery

Conceptually, creating an online "gallery" in Elements 7 has changed. In Elements 6, you used the Organizer to select your desired images or an existing album, and then chose a gallery template from a list of options. You then uploaded the online gallery via FTP protocol. Now, with Elements 7, an online gallery means that you are sharing your albums on a publicly visible page for all the world to see. And it is accomplished using Photoshop.com. For more on Photoshop.com, see Book I, Chapter 1.

Follow these steps to create an online gallery on Photoshop.com:

  1. Go to www.photoshop.com and log in using your account user name and password.

    If you do not have a user name and password yet, read up in Book I, Chapter 1 for how to sign up for them

  2. Go to the My Photos section.

    Click My Photos at the top of the Photoshop.com window in the Navigation bar.

  3. If you have existing albums uploaded to Photoshop.com, click the down-pointing arrow to the left of the album name(s) and click the Available to All button. This enables your album to be added to your online gallery.

    If you don't have any existing albums, get one started by first clicking the Upload Photos command in the top-left corner of the Photoshop.com window. After your photos have been uploaded, select them and click the Create album command at the bottom of the window.

  4. Click the My Gallery Albums link in the left pane to go to the My Gallery section, as shown in Figure 3-12.

  5. If you so desire, add a tagline and description for your gallery.

    To add text, simply click within the text field and type.

  6. If you want to add a photo for your profile, return to the My Photos section. Select a photo and mouse over the photo to reveal the Photo Options menu. Click and choose Use as Profile Image from the menu.

  7. If you would like to have an overall background image for your gallery, repeat Step 6, but choose Use as Gallery Background from the menu.

    Your online gallery is now available for all to browse on Photoshop.com.

    Note

    If you're a Mac user, you can still create Web galleries by using Adobe Bridge. For more on Adobe Bridge, see Bonus Chapter I, located on the Web site associated with this book.

    Create an online gallery to share your albums on Photoshop.com.

    Figure 30.12. Create an online gallery to share your albums on Photoshop.com.

..................Content has been hidden....................

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