Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design > Adobe Photoshop

This chapter is from the book

Correcting Tone and Contrast with Levels

Once you've identified that an image has contrast or exposure troubles, you'll probably want to do something about it. Almost all image editing programs have a Levels feature, and most Levels interfaces follow the design of Adobe's original Levels control from Photoshop 1 ( Figure 3.11 ).

03fig11.jpg

Figure 3.11 Photoshop's Levels dialog box.

In addition to a histogram display, Photoshop's Levels dialog box provides a pop-up Channel menu that lets you switch from adjusting the full-color image to adjusting individual color channels. Most important, though, are the three sliders positioned below the histogram. At the far left is the black slider, which points to the leftmost edge of the histogram—the edge representing black. On the right is the white slider, and in the middle is the midpoint, or gamma, slider.

You can use the black and white sliders to redefine which tones in your image should be black, and which should be white. Photoshop will automatically stretch the tones in between, redistributing them accordingly.

For example, to correct the low-contrast image shown at the top in Figure 3.12 , you can simply drag the leftmost slider so that it points to the darkest tone in the histogram and then drag the rightmost slider so that it points to the lightest tone in the histogram.

03fig12.jpg

Figure 3.12 By sliding the white and black points in the Levels dialog box, you can redefine which tones are black and which tones are white, resulting in improved contrast, as shown in the bottom image.

When you click OK, Photoshop will adjust the tones in your image so that the darkest tone is black and the lightest tone is white. The middle shades will be stretched across the intervening tonal range.

The Levels dialog box is a very interactive tool, and to really understand it you must get a feel for it. If you've never used the Levels tool before, open some of your own images and give it a try.

Losing data

Now the bad news: Just as there's no such thing as a free lunch, there's no such thing as a Levels adjustment that doesn't result in a little data loss.

Consider the histogram of the adjusted image at the bottom of Figure 3.12. The histogram now has a lot of gaps ( Figure 3.13 ). When we moved the white point and black point in the Levels dialog box, we told Photoshop to expand the data between those two points to provide a full range of black to white. However, there wasn't enough data to fill a full range of black to white (if there was, our image wouldn't have been problematic in the first place), so Photoshop had to spread out the existing tones to cover the full range. In redistributing the tones, Photoshop had to leave some tonal values empty. These are the gaps that now exist in the histogram.

03fig13.gif

Figure 3.13 The adjusted image in Figure 3.12 produces a histogram riddled with gaps because Photoshop has had to throw out data to make the adjustment.

Is the elimination of tones a bad thing? It depends. As you saw in Figure 3.2, subtle gradients and details are composed of many different shades. If some of those shades are eliminated, those gradients and details will become a little rougher and more coarse. The good news is that you usually have to throw out a fair amount of data before you see a significant degradation in your image.

Avoiding data loss when editing is impossible, so don't feel like you have to try to make edits that preserve all of your data. However, it's important to keep an eye on this issue and to plan your edits accordingly. For example, trying to use a single Levels adjustment to improve contrast and saturation in one fell swoop will often result in less data loss than using a Levels adjustment to improve contrast and then using another type of tool to adjust saturation.

The main downside to data loss is that it limits the amount of editing you can do. The histogram in Figure 3.13 shows an image that has already had a lot of its data used up just to get back to the level of contrast that should have been there in the first place. If you want to make additional edits—color corrections, for example—then you have a little less room to maneuver. Because you've already used up some data, further edits will more readily result in visible image degradation.

This is why proper exposure and good photography skills are so important. Though people often think "It doesn't matter how I shoot, because I can always fix it in Photoshop," the fact is, if you don't carefully calculate your exposure so as to capture the maximum amount of image data, you may not be able to "fix it in Photoshop" without severely degrading the image.

As you'll see in the next chapter, shooting raw not only yields more image data; it also provides you with additional tools that are less damaging to that data.

Compression vs. clipping

Two things happen to your image data when you move a control point in the Levels dialog box. The data between the control points is either compressed or expanded, while the image data that falls outside the black and white control points gets clipped ( Figure 3.14 ).

03fig14.jpg

Figure 3.14 When you click OK after moving the black and white control points for an image, the image data outside those points will get clipped. The image data between the white and black points will get expanded to fill a full range from black to white.

When data is expanded or compressed, it is redistributed to fit inside the new space. If you're trying to fit a lot of data into a smaller space, then your image editor will have to discard some tones. When pixels with different gray values are compressed into a single gray value, that value is shown on the histogram as a spike, to indicate that it is the product of multiple, combined tones. If you're expanding data to fit into a wider space, then the program will redistribute the tones, spreading them out to cover the new space. As seen earlier, where there's no data for a particular value, a gap will appear in the histogram.

In both cases, the software will try to preserve the distribution of tones, keeping the overall "shape" of the histogram. This ensures that the relative brightness between two areas remains the same.

When you clip part of the tonal range, everything outside of the clipping is simply eliminated. Because the data leading up to the white point is expanded, you end up with fewer tones being used to create the transition to white or black. Thus, clipping the highlights or shadows can result in a sudden transition to solid black or white tones. This can often look harsh and unrealistic. Clipping is more apparent in highlights than in shadows, because clipped shadows are often embedded in dark areas where the sudden change to black is not so apparent. Return to Figures 3.1 and 3.2 and take a look at the bright highlights on the top of the chrome headlight. In Figure 3.1, the highlights are clipped, resulting in a rather sudden transition from the chrome of the headlight to the bright white of the highlight. In Figure 3.2, this transition is much smoother, with far more intermediate tones.

When using the Levels dialog box, if you hold down the Alt (Windows) or Option (Mac) key while dragging the white or black point, Photoshop will highlight the clipped areas of your image with black or white ( Figure 3.15 ).

03fig15.jpg

Figure 3.15 If you hold down the Alt or Option key while moving the black or white slider in Photoshop's Levels dialog box, you'll see exactly which areas of your image are getting clipped.

Adjusting midtones

While the white and black points allow you to increase contrast as well as to brighten or darken an image overall, there will be times when you want to brighten or darken the image while leaving the blacks and whites untouched. For this, the Levels control provides the midpoint, or gamma, slider.

Perhaps the easiest way to understand the gamma slider is to look at its effect on some simple gradients.

In Figure 3.16 , the gamma slider has been moved to the right, causing all of the tones between the midpoint and white to be compressed, while at the same time expanding all of the tones between the midpoint and black. Overall, the image is darker because the darker tones have been expanded into more of the image.

03fig16.gif

Figure 3.16 A positive gamma adjustment shifts the midtones to the right, darkening the image.

If the slider is moved the other way, as in Figure 3.17 , the opposite happens, and the overall image is lighter.

03fig17.gif

Figure 3.17 A negative gamma adjustment lightens the middle tones of the image.

What's important to notice is that the black and white points did not change at all. In other words, we were able to preserve the lightest and darkest tones in the image, while adjusting all of the tones in between.

For a less conceptual example, return to Figure 3.12. Though we were able to improve the contrast in this image by making white and black point adjustments, overall the image is still a little dark. A more aggressive white point adjustment would brighten the image further, but it would also blow out the highlight areas, resulting in a loss of detail and a generally uglier image ( Figure 3.18 ).

03fig18.jpg

Figure 3.18 You could brighten this image further with a more aggressive white point adjustment, but then the highlights would blow out.

Instead, we want to brighten the image without brightening the white tones, since they're already as bright as they can go. As you've already seen, a gamma adjustment lets you brighten or darken middle tones without affecting the white and black tones. With a gamma adjustment, we can easily brighten the image without blowing it out ( Figure 3.19 ).

03fig19.jpg

Figure 3.19 A simple gamma adjustment brightens the image without blowing out the highlights.

The Levels control is a very powerful editing tool, and one you'll probably use on almost every image you work with. As with most tools, the Levels control becomes much easier to use with practice. Once you start shooting raw, you may be a little less dependent on Levels, since you'll be able to control your white and black points and midpoint during your initial raw processing. You'll learn more about this in the next chapter.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020