Chapter 3
Digital Imaging Fundamentals
My experience with teaching people who already have a good working knowledge of Photoshop has been that they are often confused by fundamental digital imaging concepts. How is color represented in channels? What is aliasing? What does bit depth really mean? What is the relationship between canvas size, image size, and resolution? Should I use RGB, CMYK, or Lab color? No matter whether you are an absolute beginner or already have some Photoshop experience, this chapter will answer all of these pressing questions and many more.
- Working with pixels
- Understanding color
- Storing data
- Setting document size and resolution
Working with Pixels
After many years of working with digital images, I still marvel at the fact that cameras somehow magically convert light into numbers. This digital alchemy boils down to recording myriad blocks of color, better known as pixels. In the following sections, you will learn the benefits of maximizing megapixels, how to choose the correct pixel aspect ratio for the kind of work you are doing, how to deal with aliasing, and finally, how to navigate through millions of pixels with ease.
Maximizing Megapixels
Every year manufacturers seem to produce cameras that can capture more pixels. Modern sensors capture so many pixels in every photo that the pixels number in the millions (megapixels). Figure 3-1 shows a photo captured with a Panasonic Lumix 5-megapixel point-and-shoot camera. Figure 3-2 shows the same scene photographed with a Canon EOS 5D Mark II 21.1-megapixel digital single-lens reflex (DSLR) camera.
The insets in Figure 3-1 and Figure 3-2 show that more megapixels means you can digitally zoom in much further and still have good quality. The cat on the mat in Figure 3-1 is far more blurry and noisy compared with Figure 3-2.
More pixels generally mean more detail can be captured and with less noise.
On the downside, greater numbers of pixels consume more RAM and take up more file storage space. If you are shooting photos for the Web but not for print, you can get away with using fewer megapixels. However, resampling large images down to the desired size will always result in higher-quality photos compared to shooting fewer megapixels to start with. The adage that you get what you pay for rings true for digital cameras.
Selecting the Pixel Aspect Ratio
If you are creating output for the Web or for print, then you will always use square pixels (see Figure 3-3).
The Extended version of Photoshop can do video editing and people can easily get confused when dealing with video files having non-square-pixel aspect ratios. It’s really very simple, however. Choose the pixel aspect ratio on the View menu according to the video format you are using.
In Photoshop CS6 Extended you can paint, clone, and even add text over multiple frames of a video sequence using the Movie Paint feature. Select Layer ⇒ Video Layer ⇒ New Video Layer From File... and your video clip will be imported as a single video layer that you can paint on non-destructively.
Figure 3-4 shows pixels that are 1.5 times as wide as they are tall according to the DVCPRO HD 1080 standard. At 100% magnification, an image shown with the wrong pixel aspect ratio would appear either too narrow or too wide. The amount of stretching in standards D1/DV NTSC or D1/DV PAL is very subtle because these standards have aspect ratios closer to square.
Viewing the Pixel Aspect Ratio
The pixel aspect ratio becomes evident if you zoom in so far that you can perceive the actual pixels. Choose View ⇒ Show ⇒ Pixel Grid if you don’t see grid lines revealing the pixel aspect ratio.
Dealing with Aliasing
Aliasing is a problem that arises out of the practice of representing continuous tones in a grid of pixels. When linear elements don’t align with the grid, a stair-stepping type of distortion occurs. Figure 3-5 shows two lines: the red line exhibits aliasing, and the blue line has been anti-aliased. Anti-aliasing blurs the edge by dithering pixels adjacent to the edge with gradually decreasing values that blend into the surrounding pixels.
Most of the time you’ll want to anti-alias the shapes that you draw (see Chapter 5, “Drawing”). However, there are occasions when you might want to intentionally alias lines, especially when they are horizontal, vertical, or at 45 degree angles because these orientations produce crisp lines without any fringe pixels.
My book Enhancing Architectural Drawings and Models with Photoshop (Sybex, 2010) includes in-depth coverage on working with aliased line drawings in Photoshop.
Navigating Pixels
When you’re viewing millions of pixels on screen, you’ll need to learn how to navigate to get around any digital photo. The Zoom and Hand tools are all that you need to navigate in 2D. Let’s gain some experience navigating a 21-megapixel photo.
2. Press Cmd+K to open the Preferences dialog box on the General page. Select the following check boxes: Animated Zoom, Zoom Resizes Windows, Zoom With Scroll Wheel, Zoom Clicked Point To Center, and Enable Flick Panning. Click OK.
Animated Zoom and Flick Panning are available in Preferences only if your computer’s graphic subsystem supports OpenGL.
3. Choose Window ⇒ Arrange ⇒ Float In Window. Select the Zoom tool. Click several times on the cat on the mat in front of the cabin door. The window enlarges because of the Zoom Resizes Windows option. The cat stays centered in the view because of the Zoom Clicked Point To Center option.
4. Hold the Cmd key and press the - (minus) key to zoom out one step. Hold Cmd and press the = key to zoom in one step. This is an alternative to using the Zoom tool.
5. Press Z to reselect the Zoom tool. Select Scrubby Zoom on the options bar. Position the cursor over the silver chimney cap and drag from left to right to zoom in there. Keep dragging until you reach the maximum magnification level of 3200%, which is listed on the document title bar. Drag from the right to the left to zoom back out.
6. Deselect Resize Windows To Fit on the options bar (the same as the Zoom Resizes Windows preference) and repeatedly click on the pair of green chairs on the right to zoom in there. The pixels will fluidly animate between magnification stops due to the Animated Zoom preference.
7. Hold down the spacebar and drag to pan the picture. Drag and release while the cursor is moving and the picture will keep panning (this is the Flick Panning preference at work). Release the spacebar to return to the Zoom tool.
8. Hold down Opt and click to zoom out. Notice how holding down Opt temporarily toggles the Zoom Out button on the options bar.
9. Click the Fit Screen button on the options bar (or double-click the Hand tool). You can see the whole image with its aspect ratio preserved. Click Fill Screen and it might zoom in or out depending on your monitor’s aspect ratio so that pixels fill the entire screen. Double-clicking the Zoom tool displays the actual pixels at 100% magnification.
Fit Screen respects the document’s aspect ratio, whereas Fill Screen respects your monitor’s aspect ratio.
10. Click the Print Size button. The picture zooms to approximate the document’s resolution (see “Setting Document Size and Resolution” later in this chapter). Double-click the Zoom tool. The document zooms to 100% magnification. This is equivalent to clicking the Actual Pixels button on the options bar. You will want to view photos at 100% when sharpening them.
For more about sharpening photos, see Chapter 12, “Developing Photos.”
Understanding Color
Color is a very powerful visual element, and numerous books have been written on the subject. In the following sections I’ll discuss the fundamentals: how color is represented by primary colors, why primaries are stored in channels, the differences between color modes, and how to pick color in Photoshop.
See Chapter 15, “Working with Color” for more information about managing, correcting, adjusting, and proofing color.
Using Primary Colors
Although the human eye can distinguish between about 10 million different colors, we can agree on names for less than a dozen. Figure 3-6 lists additive primaries in white, subtractive primaries in black, and tertiary colors in gray.
Just as any point can be represented in 3D space as a set of coordinates taken along the X, Y, and Z primary directions, any color can be represented as a combination of three primary colors. However, color is complicated because the nature of light changes depending on whether it shines directly in your eyes or reflects off a surface before entering your eyes.
Light emitted from a computer monitor, or light captured by a digital camera or scanner sensor, is additive. Red, green, and blue (RGB) are the primary colors of additive light. Cyan, magenta, and yellow are secondary colors in the RGB system. Figure 3-7 shows that if you add equal intensities of red, green, and blue light together, you get pure white. All the colors of the rainbow are in white light.
Reflected light, on the other hand, behaves differently. If you start with a white source and reflect it off of a printed surface, the surface will absorb some of the light. The reflected light will have some of its wavelengths subtracted compared with the source. Cyan, magenta, and yellow (CMY) were chosen as the primary colors of subtractive light in order to differentiate them from the RGB system. In the CMY system, red, green, and blue are secondary colors. In theory, if you mix cyan, magenta, and yellow paints, pigments, or inks, you should get pure black (see Figure 3-8).
What About Red, Yellow, and Blue as Primary Colors?
If, like me, you learned in school that red, yellow, and blue (RYB) were the primary colors used in painting, then you’re probably confused by the CMYK color system. The source of this confusion dates to Goethe’s Theory of Colors (1810) wherein the German poet described color in terms of its psychological effects. The RYB system is still taught in many art schools. However, modern scientific color theory shows that the colors in the CMYK color system are truly the subtractive primary colors. CMYK is used universally today in professional offset printing presses.
However, no real-world paints, pigments, or inks are perfect. Every painter knows that if you mix multiple paints together, the result is a muddy brown, not black as would match color theory. For this reason black (represented by the letter K) was added to the subtractive primaries so that cyan, magenta, yellow, and black form a four-color system called CMYK.
Storing Color in Channels
You might be surprised to learn that camera sensors do not directly record unique colors. For example, there is no orange sensor. Orange is recorded as a combination of red, green, and blue light intensities represented as (255,168,0) in 8-bit color. The human eye has three types of cones mapping roughly to red, green, and blue wavelengths, so there is a strong correlation between how we record additive color and how we see.
In Photoshop, color is stored in channels. Channels are nothing other than grayscale images. In RGB color there are three channels, one for each primary. So an RGB file has three grayscale pictures in one file. Ponder the paradox—there is literally no color in the digital representation of color. Figure 3-9 shows an RGB image created entirely from its three constituent grayscale channels.
Each channel in the Photoshop file is sent to corresponding red, green, and blue subpixels for display on your monitor. When this light enters your eyes, three types of cone structures pick up varying intensities of red, green, and blue light and turn this information into a color picture in your mind (see Figure 3-10).
In the following steps you will explore the channels in a sample file.
2. Select the Channels tab to bring it to the front of the Layers/Channels/Paths panel group. Select the Red channel (see
Figure 3-11).
3. Press Cmd+4 to select the green channel. Press Cmd+5 to select the blue channel. Observe how each channel’s grayscale information is slightly different (shown in
Figure 3-9, earlier in this chapter).
4. Select the Alpha 1 channel. Alpha channels are additional optional channels beyond the color channels. In this case the Alpha 1 channel is a mask that hides the background (with black) and reveals the businesswoman in white. Shades of gray appear in her hair where the foreground and background blend slightly.
Not all file formats support alpha channels.
5. Select the RGB composite channel. The RGB, Red, Green, and Blue channels highlight in the Channels panel because the RGB channel isn’t really a channel in its own right. RGB is merely a convenient switch that sends each color channel to its corresponding subpixels in the monitor so you perceive the color image on screen.
6. Toggle on the visibility of the Alpha 1 channel by selecting its eye icon in the Channels panel. A transparent red mask indicates where the alpha channel masks the color image (see
Figure 3-12).
My book Enhancing Architectural Drawings and Models with Photoshop (Sybex, 2010) shows how alpha channels can be used in Photoshop to composite photographs with 3D computer-generated imagery.
Selecting Image Modes
Photoshop’s image modes correspond to different systems for handling color and/or light intensity. The following are Photoshop’s color modes:
Bitmap Bitmap mode stores black and white pixels only, without any intermediate shades of gray. Bitmap files are extremely small because binary information (1 for black and 0 for white) is all that is required to describe them. Bitmap mode may be entered only from grayscale mode.
Grayscale Black, white, and intermediate shades of gray are represented in grayscale mode. No hues are recorded, only light intensity values.
Duotone Duotone, tritone, and quadtone images using two to four inks can be created in this mode that employs but a single channel. Duotone is a specialized printing technique in which shadows are typically printed with black ink and the mid-tones and/or highlights are printed with one or more separate ink colors, producing an old-fashioned cyanotype or sepiatone look. Duotone mode may be entered only from grayscale mode.
Indexed color A color index is a list of up to 256 colors that reference a single channel. Indexed color mode produces small image files that are suitable for deployment on the Web in file formats such as GIF or PNG. This mode does not support layers or filters. In addition, many adjustments are unavailable in indexed color mode, greatly limiting its image manipulation capabilities.
RGB Red, green, and blue color is used to capture photographic and scanned images and to display additive color on computer monitors. Everything on the Internet is shown in RGB color. In addition, the RGB color space is widely used in desktop printers, including ink-jets and color laser printers.
CMYK The subtractive cyan, magenta, yellow, and black color space is used primarily in professional printing where ink is offset from a metal plate to a rubber blanket and then transferred to the printing surface in four separate runs. CMYK files are larger than RGB files because of the addition of the fourth channel.
The majority of the world’s professionally printed material is produced in CMYK.
Lab Lab color isn’t processed in a laboratory as its name might suggest. Lab stands for Lightness, a, and b color channels. In this unique system, detail is carried in the Lightness channel and color is carried using a combination of a and b channels. Lab is most useful when you want to isolate the image detail for sharpening or for grayscale conversion.
Multichannel Multichannel is an advanced mode that doesn’t support layers. Use multichannel only if your professional printer requires it.
In the following steps you will convert an image into several modes and investigate the results in the Channels panel.
2. Open the Channels panel and observe the Red, Green, and Blue channels. Choose Image ⇒ Mode ⇒ CMYK Color. Select each of the channels one at a time (see
Figure 3-14). The blue sky is carried mostly on the Cyan channel and a little on the Magenta channel where the pixels appear darker. There is very little yellow in the sky and that is why the sky appears white on the Yellow channel. The pavement is carried mostly in the Magenta and Yellow channels. Press Cmd+2 to select the CMYK composite channel.
3. Choose Image ⇒ Mode ⇒ Lab Color. Select the channels one at a time (see
Figure 3-15). The image detail is carried in the Lightness channel while color information is stored using a combination of the a and b channels.
4. Press Cmd+3 to select the Lightness channel. This channel looks most like a black-and-white photograph because it carries most of the image detail. Choose Image ⇒ Mode Grayscale. When prompted to choose whether you want to discard the other channels, click OK. You are left with a single Gray channel (see
Figure 3-16).
Use the Black & White adjustment (see Chapter 11, “Adjusting and Filtering”) for finer control in the conversion to grayscale.
5. Choose Image ⇒ Mode Bitmap. Select Halftone Screen in the Bitmap dialog box (see
Figure 3-17). Click OK.
Halftone is a technique that simulates continuous tone by varying dots in size, shape, or spacing. Many comic books and newspapers print with halftone screens.
6. In the Halftone Screen dialog box that appears, enter
65 as the frequency in lines per inch and 0 for degrees, and select Round as the shape. Click OK. The single Bitmap channel carries black or white pixels only.
Figure 3-18 shows the resulting image.
Picking Color
Photoshop uses foreground and background colors for a variety of tasks. The default colors are black in the foreground and white in the background. Pressing D restores the default colors and X exchanges the foreground and background colors.
The default colors are exchanged in layers masks and alpha channels.
There are many ways of picking colors. In the following steps you will explore some of the methods of selecting foreground and background colors.
1. Choose File ⇒ New, select the Web preset and a size of 800 × 600 pixels. Click OK to accept the default options.
2. Press B to select the Brush tool (which you’ll learn more about in Chapter 4, “Painting”). On the Mac, hold down Cmd+Opt+Control and drag using the left mouse button in the document window. On Windows, hold down Shift+Alt and drag using the right mouse button in the document window. On either operating system, you can release the modifier keys after the heads up display (HUD) color picker appears but keep dragging the mouse button (see
Figure 3-19). Drag the hue slider up or down and then drag the target around the square color ramp to select saturation (left to right) and brightness (top to bottom) levels before finally releasing the mouse button. Make a brush stroke in the document window by dragging, select another color in the HUD picker, and make another brush stroke.
3. Press Cmd+K to open the Preferences dialog box. Select Hue Wheel (Small) from the HUD Color Picker drop-down menu on the General page and click OK. Open the HUD color picker with the same modifier keys you used in the previous step and select a hue using the color wheel. Select saturation and brightness using the square color ramp in the center of the wheel (see
Figure 3-20).
4. Click the background color well on the Tools panel. The Color Picker (Background Color) dialog box appears. With the H (hue) radio button selected, the controls are much like the HUD hue strip. Drag the hue arrows up or down to select a hue and use the color ramp to select saturation and brightness levels. The new color you are picking appears as the top swatch while the former background color appears underneath in an adjacent swatch (for the purpose of comparison). Notice that all the numbers in the various color modes change as you pick a color. You can enter values using the radio buttons for all of the following color systems: HSB, RGB, Lab, CMYK, and the # text box is for hexadecimal color (see
Figure 3-21).
When the color picker is open, you can sample color from any open document within Photoshop. Use the Eyedropper tool to accomplish this without the color picker.
5. Click the Color Libraries button. The Color Picker dialog box is swapped for the Color Libraries dialog box (see
Figure 3-22). Scroll through the Pantone Sold Matte library and select Pantone 203M.
Using a Color Matching System
Pantone is an example of a standardized system used to color-match painted, printed, and manufactured goods. You can take a Pantone formula guide book into the field and match a specific color, make a note of its color number, and match the color using one of Photoshop’s color libraries.
6. Click the Picker button to swap the Color Libraries dialog box for the Color Picker dialog box. Click the Add To Swatches button, type the Pantone number (Pantone 203M in this case), and click OK. Select the Swatches panel to bring it to the front of the Color/Swatches/Styles panel group. The color you just saved appears as the last swatch for easy recall at some future time (see
Figure 3-23).
The Color panel provides another way to pick color.
Storing Data
Once you understand that digital pictures are made up of 1s and 0s, it makes sense to learn a bit about data, its relationship with detail, and how data can be compressed when stored.
Bits and Bit Depth
A bit is the most fundamental unit of computer storage, a transistor that is either on or off, which is represented numerically by 1 or 0. A bitmap is the most primitive type of image because each pixel is mapped to 1 bit (black or white).
To create black-and-white or color photos, more bits per pixel are clearly required. With 8 bits per pixel, or 2 raised to the eighth power, there are 256 tonal gradations possible. 256 gradations is enough data to represent smooth tonal transitions in black-and-white photos in a single Grayscale channel.
As you learned in the previous section, color photos usually have three channels. RGB images have 8 bits/channel or 24 bits/pixel. Two raised to the 24th power offers more than 16 million possibilities for every pixel, which is enough data to represent color photos. Figure 3-24 shows photos of increasing bit depth.
CMYK images having four 8-bit channels yield a bit depth of 32 (8x4).
Professional DSLR cameras have the ability to shoot at higher bit depths up to 16 bits/channel. An RGB image shot at 16 bits/channel would be a 48-bit image, requiring much more storage space and RAM than a similar image having 8 bits/channel.
It is advantageous to shoot at 16 bits/channel if you can afford to support the increased memory and storage requirements because manipulations made to images can be “destructive,” which is something you’ll learn about in the next section. High dynamic range (HDR) images have even higher bit depths at 32 bits/channel (see Chapter 14, “Merging Photos”).
Data versus Detail
Just because you shoot a 24-bit photo doesn’t mean you have taken advantage of the full tonal range stored in the image. In other words, you might be “paying” for the data even if you are not filling all of it with detail. Histograms provide a way to take a look at how data is distributed across the tonal range.
Figure 3-25 shows a typical histogram. Thin vertical bars are arranged in a statistical representation of where pixels fall across the tonal range, from shadows on the left through mid-tones to highlights (bright areas) on the right. The histogram is color coded to show the contribution from each channel and its complements. The gray graph represents the sum total of all the channels.
This particular histogram tells us that the brightest highlights aren’t as bright as they should be. The peaks in the shadows show that this image is also dark. After the image is manipulated by increasing brightness and adjusting the highlight input level (which you’ll learn more about in Chapter 11, “Adjusting and Filtering”), the histogram shows a better distribution across the tonal range (see Figure 3-26).
After the image is manipulated, the number of pixels hasn’t changed so the amount of data hasn’t changed either. However, tiny gaps in the histogram show that some of the initial detail has been irretrievably lost. This emphasizes the fact that there is a difference between data and detail.
In Chapter 12, “Developing Photos,” you will learn nondestructive workflows in which you will apply color corrections, make multiple tonal adjustments, reduce noise, and sharpen all at once through the Adobe Camera Raw interface.
Compressing Data
Although a set number of pixels consume a given amount of RAM, it is possible to compress the data so the file takes up less storage space. For example, the Cabin.jpg sample file you opened earlier in this chapter is a 21-megapixel image, which consumes 60.2 MB of RAM. However, as a JPG file, the size on the hard drive is only 6.1 MB (showing almost tenfold compression).
Compression works in principle by efficiently representing patterns in the data. For example, if there were a million 1s in a row, it would be more efficient to state that fact rather than literally listing one million 1s in the file. Compression schemes are obviously more technical than this, but you get the general idea.
There are two types of compression: lossless and lossy. Lossless compression represents data concisely and without error but doesn’t compress the data as much as lossy methods do. Tagged image file format (TIFF) files support lossless compression schemes and are good for printing because they don’t sacrifice any detail.
Lossy compression sacrifices some of the detail for the sake of smaller file sizes. The Joint Photographic Experts Group (JPEG) format is widely used on the Web because of the small file sizes made possible with lossy compression. Figure 3-27 compares lossless versus lossy compression in terms of quality. You can plainly see JPEG artifacts in the lower image due to the extreme level of lossy compression used.
Setting Document Size and Resolution
Document size and resolution are inversely proportional. That means if you increase document size, the resolution decreases and vice versa. In the following sections, you will learn guidelines on setting resolution for print and for display on the Web. You will also learn how to resample images, change the canvas size, and trim and crop images.
Setting Resolution
The term resolution refers to pixel density measured in pixels/inch or pixels/cm (centimeter). Contrary to popular belief, resolution is only important for print work. Every computer monitor has a different resolution, so there is no way to ensure that an image with a specific document size will appear at any specific actual size on the Web.
What Is Screen Resolution?
Photoshop’s default is to create new documents having the resolution of 72 pixels/inch using the Web, Mobile & Devices, and Film & Video presets in the New dialog box. This “screen” resolution was chosen because traditional typography has 72.27 points per inch. Windows uses 96 pixels/inch as its screen resolution. But neither screen resolution is truly of any consequence because all monitors are different. Pixel dimensions are all that matter on the Web because it is pixel dimension that is coded in HTML tags and never resolution.
Resolution is very important in printed matter. Each device has different limits on how many dots or lines per inch (or cm) it can print. In general, the minimum resolution for an acceptable-quality print is 200 pixels/inch (80 pixels/cm). Photoshop’s default is to create new print documents having a resolution of 300 pixels/inch (120 pixels/cm) because most output devices support at least this equivalent print density. In the following steps, you will change the resolution of an image without changing its pixel dimensions.
You can set the default print and screen resolutions on the Units & Rulers page of the Preferences dialog box.
2. Choose Image ⇒ Image Size. Deselect the Resample Image check box if it is currently checked. Right now the document size measures 7.264 inches by 11.111 inches with a resolution of 72 pixels/inch.
3. Change the resolution to 300 pixels/inch (see
Figure 3-28). The document size is automatically reduced to 1.743 inches by 2.667 inches to compensate for the increased resolution.
You can’t print this particular image out at a larger size at a reasonable level of quality because it doesn’t have enough pixels. At 523 × 800 pixels, this document would function well as a large sized web graphic but can’t print much larger than a postage stamp.
Resampling Images
The Resample Image check box in the Image Size dialog box allows you to change the number of pixels. At first blush you might think your postage stamp printing problems are solved if you can change the number of pixels at will, right? Unfortunately it’s not that simple: Increasing the number of pixels in a photo increases the amount of data without increasing detail. That’s why Photoshop enlargements generally don’t improve print quality.
Use the Blow Up 2 Plug-in for Quality Enlargements
If you need to print a web graphic larger than a postage stamp, the Blow Up 2 Photoshop plug-in can help. It uses a sophisticated algorithm that converts raster images into vector representations. Vector objects can be resized without losing quality, so the vector representation is blown up and then rasterized, leaving you with smooth, crisp edges and natural-looking textures. See
www.alienskin.com/blowup/.
Image resampling is changing the overall pixel dimensions of the image. Image scaling is changing the size of the print without changing the number of pixels in the image.
On the other hand, Photoshop does an excellent job of reducing images. In the following steps you will reduce the pixel dimensions of a large image by resampling it.
1. Open the sample file Cabin.jpg.
2. Choose Image ⇒ Image Size. Right now the image measures 18.72 × 12.48 inches with a resolution of 300 pixels/inch. Select Resample Image and observe that the pixel dimension text boxes become enabled. Select the Bicubic Sharper (Best For Reduction) algorithm from the drop-down menu if it is not already selected.
Additional resampling algorithms include Nearest Neighbor (for hard edges), Bilinear, Bicubic (for smooth gradients), Bicubic Smoother (for enlargements), Bicubic Sharper, and Bicubic Automatic.
3. Although you could directly change the pixel dimensions, in this case you will adjust the document width in order to fit the photo on letter-sized paper. Change the document width value to 10 inches. Observe that both the document height and pixel dimensions change at the same time while the resolution remains constant (see
Figure 3-29).
Check the Scale Styles box to ensure that any Layer Styles in the file are scaled in proportion.
This image can now print in high quality at 106.66 inches with a resolution of 300 pixels/inch. By resampling the image, you reduced the file that would be sent to printer from 60 MB down to 17 MB so it will print that much faster and take up less than a third of the storage space.
Changing the Canvas Size and Trimming
Using the analogy of fine art painting, the document window is sometimes referred to as the canvas. A painter would never change their canvas size after they started painting, but such a thing is possible in Photoshop. Changing canvas area is fundamentally different from changing the image size because pixels are never resampled when the canvas is altered—just added or removed. Trimming is like cropping except the trimming algorithm can automatically cut away all the pixels up to the edges of an object. In the following steps you will alter the canvas size and trim it to get a feel for these important tools.
1. From the book’s Downloads page at
www.sybex.com/go/photoshopessentials, open the sample file
Star.png. The edges of the digital art’s circular composition are tangent to the square canvas on all four sides.
2. Choose Image ⇒ Canvas Size, or press Cmd+Opt+C if you added this keyboard shortcut in Chapter 2, “Getting Acquainted with Photoshop’s User Interface.” Select Relative and change the Width drop-down menu to percent. Type
25 in the Width text box (see
Figure 3-30).
Use the anchor buttons to control where pixels are added or clipped.
3. Open the Canvas Extension Color drop-down menu and select Other. The color picker appears. Instead of picking a color within the Select Canvas Extension Color dialog box, move the mouse over the canvas and see the cursor appear as an eyedropper, meaning you can select a color from the canvas itself. Click the area outside the circle to select medium gray and click OK twice. A gray border is added around the artwork.
4. Choose Image ⇒ Canvas Size again. Deselect Relative and change the Width drop-down menu to Pixels. Type
800 in the Height text box and click OK. A warning dialog box appears that says, “The new canvas size is smaller than the current canvas size; some clipping will occur.” Click Proceed.
Figure 3-31 shows the result.
5. Choose Image ⇒ Trim. In the Trim dialog box, you can choose to base the trim operation on the top left or bottom right pixel color. Both corners will work the same way in this case because medium gray surrounds the image. Click OK. All the pixels added with Canvas Size have been removed with Trim.
Cropping
Many photographers tend to crop in the viewfinder or in Live Preview mode on their cameras, but there are times you’ll want to crop photos in Photoshop no matter how you shoot pictures. In the following steps you will crop a photo using the rule of thirds (see Chapter 1, “Design Basics”).
2. Choose the Crop tool and drag out a window within the canvas. Select Rule Of Thirds from the View drop-down menu on the options bar if it is not already selected.
3. Drag the corner and/or side handles until the guides appear as shown in
Figure 3-32. Press Enter to commit to the cropping operation.
The Essentials and Beyond
In this chapter you have learned the fundamentals of digital imaging, and this knowledge should hold you in good stead as you continue to learn more about Photoshop’s tools and techniques. In particular, you should now understand pixels, bits, compression, anti-aliasing, the basis of additive and subtractive color, the relationship between resolution and document size, resampling, changing the canvas size, trimming, cropping, and much more.
Additional Exercise
Open the
Logo.jpg sample file on the book’s Downloads page at
www.sybex.com/go/photoshopessentials and trim away the medium gray border. Reduce the image down to a size of 400 × 400 pixels. When you’re finished, the image should look the way it does here.