Skip to main content

Digital photography histogram explained for better photos

The ability to read histograms in digital photography is an excellent skill that every photographer should have. Getting a properly exposed shot is crucial when it comes to photography, and using the histogram is a solid way to achieve it. That 2 to 3 inch LCD screen located on digital cameras is only a quick way to look at the photo exposure and its details. In harsh lighting or vivid ambient lighting conditions, it can prove to be misleading to the human eye. Sometimes the LCD brightness level can also create issues with judging the exposure of a shot. So what does histogram explain about an image? How can histogram help you to take better images? In this beginner-friendly post, I will try to answer these questions. You can consider it as a tutorial or cheat sheet for digital photography histograms.

Photography histogram image examples:
The histogram is basically a mathematical way of representing data, and it applies to digital image information too. In digital photography, histogram represents the pixels associated with different tonal values in a given image. Each pixel in a colour image is a combination of red, green and blue colours. The brightness level of each colour ranges from 0 to 255 if the image is of 8 bits. Let's start with black and white photos first for simplicity.

Black and white histogram:

Phoography hisrogram explained
Dark or underexposed image

Histogram explained
Bright or overexposed image

Histogram photography explanation
Properly exposed image
From the above 3 image examples, it is evident that an overexposed or extremely bright photo will have the curve area moved to the right. In contrast to this, an underexposed image will have the curve being squished to the left. For a properly exposed or a balanced exposure shot, the curve will cover the whole axis without abrupt spikes or cut-offs. A spike or cut off means image information is being clipped or lost.

Colour histogram:
A colour image histogram will show a bit more information as compared to a black and white image histogram. It has 3 different curves representing the red, blue and green colour pixels present in the image.  Overlapping of any 2 colour curves with each other makes cyan, yellow and magenta. One colour being clipped (overexposed) can be bad as it means you won't be able to recover much information without losing the natural look of the image.
Most of the modern day DSLR cameras allow separate representation of all three curves in 3 different histograms at the same time.
Histogram of a colour image
Colour image histogram example

Image histogram graph:
Vertical axis: Pixel count for each brightness or tone level.
Horizontal axis: Brightness level. Leftmost is pure black, the rightmost is pure white. As we move left to right, the brightness increases. Every image has dark areas, bright areas and some normal areas. The darker part is called shadows, bright part is called highlights and mid-normal range is called mid-tones.

Explanation of camera histogram
Histogram explanation

How to use a histogram?
Ideally, the histogram curve should be smooth and well spread but perfect situations are not always present. What if the scene has a lot of light variation like say Sunset? Or shooting indoors and there are windows showing bright daylight. In cases like this, it is very hard to avoid a bit of highlight clipping or shadow clipping. To help with this, some digital cameras have a functionality called as "blinkies" or "highlight clipping warning". It is a flashing animation that tells the user if highlights are being clipped in your image when previewing.  In addition to this, usually exposed to the right is considered as a safe bet when taking photos. We will talk about this technique in a separate post, don't want to overwhelm beginners in one single post. :)

Why can't a camera show histogram from the raw image?
Even when shooting raw, a histogram is based on the jpeg preview of the raw file. But why don't cameras show a histogram based on the raw data instead of jpeg preview? One possible reason could be because it's faster to show information based on the jpeg review. Raw files are huge in size and for a camera processor to read that 25-40 MB image data would definitely introduce some delay. Another reason is that a raw file has no contrast curve, white balance and saturation applied to it. 
If you still want to view the raw file histogram, you can use Magic lantern software to view histogram in live view and image review. Still, that wouldn't be a very meaningful representation of the raw data.

Lastly, the ability to read and understand histograms helps a lot with post processing images too. All the major photo editing software use sliders such as highlights, shadows etc. and knowledge of histogram can make processing a lot faster. Hope this post helped you to understand the basics of camera histograms.
Share the photography love by sharing this post. :) 


Popular posts from this blog

Canon CR3 raw format guide

A raw image file is like a digital negative without any lossy compression and minimal processing applied to it. A digital camera shooting images in raw format provides output in the best possible quality, which means files are larger in size and take more space. The benefits offered by shooting raw format overpowers the slight storage hassle though. Few of the well known raw formats include CR2, NEF, RW2, RAF, PEF, ARW, etc.  In this post, we will talk about the new compressed raw format introduced by Canon starting with its mirrorless series of cameras.

History of Canon raw formats
Back in the early 2000s, Canon cameras produced raw photos in CRW format. Example of cameras shooting in CRW include Canon D60, Canon D30, Canon 10D, and Canon EOS 300D. Most of the cameras released after the year 2004 shoot raw photos in CR2 format. Examples of CR2 format Canon cameras include 350D, 6D, 7D, 5D, 5D Mark II and many more.
In 2018, Canon introduced its new mirrorless camera known as the EOS …

Relation between ISO, shutter speed, aperture and light in photography

Photography is a word having Greek roots, which basically means "drawing with light". When I started doing digital photography a few years ago, this did not make sense to me at all. How can you make a picture just using light? Only light matters? My pictures were either black or completely washed out all the time, but I didn't feel like giving up. It took me a fair amount of time to understand controls such as shutter speed, aperture and ISO which was the outcome of non-stop reading and a lot of mistakes. Coming back to the concept of light, it started to make sense after attending a film photography workshop. The dark room with very dim or near to zero red lights was a whole new point of interest. My partner and I made a pinhole camera out of a pumpkin. 
The workshop made me understand how important light is when taking pictures, and the rules apply to both film and digital photography. Basically, the value of shutter speed and aperture directly affect the amount of li…

Darktable vs Lightroom Classic CC

I first heard about Darktable software in 2016 and actually was quite fascinated with the name itself.  Within a few hours of hearing about it, I went to the official Darktable website and downloaded it on my Linux machine. Have been using it for quite a while now alongside Adobe Lightroom Classic CC and hence decided to write this small review post. If you are looking for a free Adobe Lightroom alternative, this might be or might not be for you depending on what you need.  Darktable is a free open source post-processing software which can do non-destructive RAW photo editing and photo management. Non-destructive means it does not change the original RAW file, all the edits are written to a sidecar file. It has evolved through so many phases of bug fixing and operating system compatibility. The latest version is available for Linux, MacOS, and Windows. Being an open source software it doesn't surprise me that it is available in 21 language translations. That's the power of op…