Chapter 2
IN THIS CHAPTER
Understanding digital images
Discovering resolution
Exploring the many file formats of Photoshop
In the early days of photography, some less-advanced cultures viewed a photo with great suspicion and even fear. Was that an actual person, trapped in the paper? Did taking a photo steal a person’s soul? You know that a camera doesn’t trap anyone inside the paper — and you can be pretty sure about the stolen soul issue — but how much does the average shooter know about digital images? And how much do you need to know about digital images to work effectively in Photoshop?
The answers to those two questions are “Not as much as he/she should” and “Not as much as you might fear.” In this chapter, I give you some basic information about how digital images exist in Photoshop, a real understanding of that critical term resolution, and an overview of the different ways that you can save your images. But most importantly, I help you understand the very nature of digital images by explaining the world of pixels.
Welcome to the Philosophy Chapter!
Whether you take a picture with a digital camera or use a scanner to bring a photo (or other artwork) into Photoshop, you are digitizing the image. That is, digit not as in a finger or toe, but as in a number. Computers do everything — absolutely everything — by processing numbers, and the basic language of computers is binary code. Whether it’s a photo of a Tahitian sunset, a client’s name in a database, or the latest box score on the Internet, your computer works on it in binary code. In a nutshell, binary code uses a series of zeros and ones (that’s where the numbers part comes into play) to record information.
So what does binary code have to do with the wedding photos that you took this weekend or the masterpiece you must print for your thesis project? An image in Photoshop consists of tiny squares of color called pixels (pixel is short for picture element), as you can see in the close-up to the right in Figure 2-1. The computer records and processes each pixel in binary code. These pixels replicate a photo the same way that tiles in a mosaic reproduce a painting.
A tile in a mosaic isn’t face or sky or grass; rather, it’s beige or blue or green. The tiles individually have no relationship to the image as a whole; rather, they require an association with the surrounding tiles to give them purpose, to make them part of the picture. Without the rest of the tiles, a single tile has no meaning.
Likewise, a single pixel in a digital image is simply a square of color. It doesn’t become a meaningful part of your digital image until it’s surrounded by other pixels of the same or different color, creating a unified whole — a comprehensible picture. How you manipulate those pixels, from the time you capture the image digitally until you output the image to paper or the web, determines how successfully your pixels will represent your image, your artwork, your dream.
Here are some basic truths about pixels that you really need to know. Although reading this section probably can’t improve your love life, let you speak with ghosts, or give you the winning lottery number, it can help you understand what’s happening to your image as you work with it in Photoshop.
Smaller is better (generally speaking). The smaller each pixel, the better the detail in an image. (However, when you are preparing images for the web, you need smaller images that invariably have less detail.) If you capture an image of a house with an older cellphone camera and capture the same shot with a new DSLR (digital single-lens reflex camera — you know, one of the cameras with interchangeable lenses) that captures three or seven or fifteen times as many pixels — it’s pretty obvious which image has better detail. Take a look at Figure 2-3, which illustrates how lots more smaller pixels present a better image than do fewer-and-larger pixels.
Smaller pixels also help hide those nasty corners of pixels that are sometimes visible along curves and diagonal lines. When the corners of pixels are noticeable and degrade the image, you call it a bad case of the jaggies.
Keep in mind that the size at which an image can be printed — and still look good — depends on the number of pixels available. Sure, these days every cellphone seems to capture at least 10 megapixels, which is fine for 8x10 prints and perhaps even as large as 16x20 inches. But how about when your 10-megapixel pocket camera doesn’t have a long enough zoom to capture little Tommy’s exploits on the far side of the soccer field? That’s when you might need to crop and resample the image to increase the number of pixels. Resampling is discussed later in this chapter.
You hear the term resolution a lot when working with digital images. Digital cameras have so-many megapixels of resolution; inkjet printers have so-much by so-much resolution; to work in Photoshop, your monitor must have a resolution of at least 1,024 x 768 pixels; when printing your images, you must use 300 pixels per inch (ppi) as your resolution (wrong!), but your web images must have a resolution of 72 ppi (again wrong!); and don’t forget your New Year’s resolution!
In this wonderful world of digital imaging, you see resolution used in four basic ways:
Image resolution is nothing more than an instruction to a printing device about how large to reproduce each pixel. On-screen, when working in Photoshop, your image has no resolution at all. An image that’s 3,000 pixels wide and 2,400 pixels tall looks and acts exactly the same in Photoshop whether you have the image resolution at 300 ppi or 72 ppi. Same number of pixels, right? (The one real exception to this rule is type — text is usually measured in points in Photoshop, and that measurement is directly tied to the print size of your document. Type and text are discussed in Chapter 13.)
You can always check — or change — a picture’s resolution by choosing Photoshop Image ⇒ Image Size. Photoshop CC’s new Image Size dialog box (which you can see in Figure 2-5) offers the Fit To menu, which you can use to save and load presets for changes that you make regularly. The Resample box needs to be selected when changing pixel dimensions (otherwise you just change the image’s resolution). Next to Dimensions you can click the arrow to select a unit of measure, as you can next to Width, Height, and even Resolution. But the coolest new feature of the revamped Image Size dialog box is the preview. Position the cursor within the window and you can drag to reposition the preview and change the zoom factor. And rather than dragging and dragging and dragging in the small window to move the preview to a distant part of the image, simply click that area in the image itself to jump the preview to that location. The Reduce Noise slider can be used to minimize the amount of little speckles that sometimes appear when resampling an image.
You have a number of ways to change the size of your photos and other art. In Chapter 4, I introduce you to cropping (chopping off part of the artwork to make it fit a certain size or to improve its overall appearance and impact). You can also use Photoshop’s Image Size command to change the image dimensions or printing instructions without altering the composition, which is the visual arrangement of the image or artwork. All the content of the original image is there, just at a different size. Of course, as you can see in Figure 2-6, if you reduce the size of an image too much, some of that original content can become virtually unrecognizable.
If you know the specific pixel dimensions that you need for the final image — say for a web page — you can simply type a new number in the Width or Height fields in the Image Size dialog box and click OK. Of course, you probably want a little more control over the process, don’t you? Figure 2-7 gives you a closer look at the resampling options in the Image Size dialog box, with suggestions on when to use each.
If you’re resizing an image that uses layer styles (see Chapter 12), you want to click the gear button in the upper-right corner of the Image Size dialog box and make sure that the Scale Styles check box is selected to preserve the image’s appearance as it shrinks or grows. In a nutshell, layer styles (such as shadows, glows, and bevels) are applied to a layer at a specific size. You can scale the image without changing those sizes, or you can scale the image and change the style sizes proportionally. Not scaling layer styles can dramatically alter the appearance of a resized image, as you can see in Figure 2-8. A slight bevel combined with a small drop shadow produces a subtle 3D effect in the original (upper) image. Below, when the image is scaled down to ¼ the original size without scaling the effects, your chips change to chumps, and the artwork is ruined.
The link to the left of Width and Height should almost always remain selected. Some exceptions might come up, but you normally want to preserve an image’s aspect ratio (the relationship between height and width) when resizing to prevent distorting the image. Figure 2-9 shows you what can happen when you scale one dimension without constraining the image’s proportions.
The Resample option is the one that might require the attention of that gray matter within your skull. Not only do you need to decide whether you want to resample the image (change its pixel dimensions), but you also need to decide how you want to resample. Refer to Figure 2-7 to see that you have seven different ways to calculate the change (called resampling algorithms).
When you deselect the Resample option (as shown in Figure 2-10), you’re changing the print dimensions without changing the pixel dimensions of the image.
When using Image Size without resampling, you’re simply changing the instructions recorded in the image for your printing device. When you enter one dimension, either width or height, Photoshop does the math and fills in both the other dimension and the new resolution.
Okay then, back to the subject of resampling! When you resample an image (change the pixel dimensions), Photoshop takes the image and maps it to the new size, attempting to preserve the image’s appearances as much as possible at the new size, using the new number of pixels. Of course, if you take an image that’s more than 3,000 pixels wide and resample it to 300 pixels wide, you’re going to lose some of the detail. And, conversely, resampling an image from 300 pixels wide to 3,000 pixels wide, even when using the Preserve Details resampling algorithm, is likely to introduce some softness to the image’s appearance.
After you have the concept of resampling under your belt, how do you know what size you should be resampling to? How many pixels do you need? Here are your general guidelines:
Photos for your inkjet printer: Inkjet printers are stochastic printing devices: That is, they use a series of droplets to replicate each pixel in your image, as shown in Figure 2-12. In theory, the optimal image resolution is one-third of the printer’s rated resolution. However, most printers don’t need an image resolution higher than 300 ppi. (For fine art prints from my high-end Epson printers, I use an image resolution of 360 ppi.)
If you’re printing something that will only be viewed at a distance, such as a banner to be hung above the crowd or a poster that hangs on a wall, you can print at a substantially lower resolution to save ink and print faster. Banners, for example, can often be printed with a resolution of 100 ppi.
After working with your image in Photoshop, you need to save the changes. Choosing File ⇒ Save updates the current file on your hard drive, maintaining the current file format when possible. If you added a feature to the file that isn’t supported by the original file format, Photoshop automatically opens the Save As dialog box and shows you which features are not supported by the selected file format. In Figure 2-13, the lower part of the Save As dialog box shows the yellow warning triangles that identify options being used in the image that are not available when saving as a JPEG.
You can go ahead and save the image in that format, but your file will no longer contain those unsupported features. In the example shown in Figure 2-13, I can click the Save button and create a JPEG file, but that JPEG won’t have the alpha channel (a saved selection) or the spot colors (a custom printing color) and it will be flattened to a single layer. If I want to retain those features in the file, I need to choose a different file format, such as Photoshop’s own PSD format. (Read more about alpha channels in Chapter 8 and about spot channels in Chapter 6.)
No matter which of the file formats you choose, if you add layers, type, adjustment layers, channels, or paths to your image, keep the original as an unflattened/unmerged (all the layers are preserved) Photoshop (PSD) or layered TIFF file. In the future, should you ever need to make changes to the image or duplicate an effect in the image, you won’t need to start from scratch.
If you print your images yourself at home or the office, you can stick with the PSD Photoshop format when saving. (Remember that you cannot re-save in a Raw format after opening in Photoshop.) If you send the photos to the local camera shop (or discount store) for printing, stick with JPEG — or, if the folks doing the printing accept it, TIFF. Here are the pros and cons of the major formats that you should consider for photos when saving:
JPG: JPEG, as it’s called, is actually a file compression scheme rather than a file format, but that’s not important. What is important is that JPEG throws away some of your image data when it saves the file. Save important images in PSD or TIFF and use JPEG only for copies.
When should you use JPEG? When sending images to a photo lab that doesn’t accept TIFF files, uploading to most social media sites, and when sending images (perhaps by e-mail or on CD) to people who don’t have Photoshop. Unlike PSD and TIFF, you can open JPEG images in a web browser and print from there — and so can Granny, and Cousin Jim, and that overseas soldier you adopted. When saving JPEGs, the lower the Quality setting you choose in the JPEG Options dialog box, the smaller the file, but also the more damage to the image. I discuss saving as JPEG in more detail in the sidebar “Resaving images in the JPEG format.”
You could theoretically use a number of other available formats, such as DCS (never Photoshop Raw), but there’s no real need with the more common and more versatile formats about which you just read.
Generally speaking, you use Photoshop’s Save As to generate copies of your images for use on a website or to show off with smartphones, PDAs, and other such devices. You can, however, choose File ⇒ Export ⇒ Save for Web (Legacy) if you prefer the old command. Here are the three file formats that you need for the web:
You’re the Photoshop master of your office. Everyone knows that you understand everything about digital images. So you’re the right person to create the company’s new brochure. Except you’re a photographer. Or you’re a web designer. Or you’re actually pretty new to Photoshop. And you don’t have a clue about preparing images for a commercial printing press.
Here’s what you need to know about file formats for those CMYK (cyan/magenta/yellow/black) color images that you’re sending to the print shop:
EPS: Choose EPS if your image has type. Don’t flatten or merge the type layers before using Save As to create the EPS. In the EPS Options dialog box, make sure to select the Include Vector Data check box to ensure that your type prints perfectly.
If you reopen an EPS file in Photoshop, your type layers get merged. Don’t! Instead, make sure to save your original file as PSD and, should you need to make changes, open the PSD and create a new EPS file when you’re done editing.
If the final destination of your image is PowerPoint or Word, use the PNG file format. If your image has areas of transparency in it, PNG is definitely the way to go. (Read about the two types of PNG files in the section “Formats for web graphics,” earlier in this chapter.)
What about all that neat clip art that you have on your hard drive? How do you use those images when Photoshop won’t open the vector-based WMF and EMF clip art files? Here’s how you get clip art into Photoshop, quick and easy:
Add the clip art.
In Word, choose Insert ⇒ Picture ⇒ Clip Art (or your word processor’s comparable command). Click directly on the artwork and drag the lower-right corner to resize it to the dimensions that you need in Photoshop. (The artwork comes into Photoshop at 300 ppi.)
Choose Edit ⇒ Copy.
The selected image is copied to the Clipboard (the computer’s memory) in Word.
Choose Edit ⇒ Paste.
You have your clip art, ready to use in Photoshop! Use the Edit ⇒ Transform commands to scale, rotate, and otherwise fit the clip art into your design. (See Figure 2-16.)
3.21.98.207