Photo Histogram Lab

Explore brightness and colour distribution, like a camera’s playback histogram.

DIDACTICAL

1 · Choose an image

No image loaded
Drop a photo hereor choose an image from your device

Added photos are saved in this browser and appear in the sample gallery next time.

2 · Read the histogram

Hover over the histogram to inspect a value.
Exposure simulation 0 EV
0 EV
−3 EV+3 EV

Linear-light preview simulation. It cannot restore detail clipped in the source image.

▧Choose a photo or load a demo
to see its histogram.
No image—
Options · photo overlay

RGB scale sets one common vertical ceiling across the three channels or scales each channel individually. This applies to Percent, Square root, logarithmic, edge-clipped, and percentile views; Pixel count always uses the same absolute count scale for R, G, and B. 98th percentile with Common RGB scaling is the default; 96th percentile is also available. Auto chooses Percent, Edge clipped, or 98th percentile while respecting the Common/Individual setting. CSV values remain exact counts.

Exam generator

Choose at least two image files or a folder. The app creates one shuffled exam sheet and its matching answer, using the selected histogram view.

Histogram help

What a histogram shows

A histogram counts image pixels by value. The horizontal axis runs from 0 (dark) to 255 (bright); the vertical axis shows how many pixels have each value. It describes tonal and colour distribution, not where pixels are located or whether an exposure is “correct.”

Why use it?

Use the graph to compare shadow, midtone, and highlight distribution; spot clipped blacks or whites; notice colour casts; and see how exposure changes move pixel values.

Views and scaling

How to use hover

Move over the histogram to inspect pixel counts and highlight matching photo pixels. Choose an exact one-value match, a ten-value range, Keep brighter to darken pixels below the threshold, or Keep darker to fade pixels above it toward white. B&W and combined RGB use luminance as the threshold; R, G, or B use that channel. Match highlights switch to black over bright pixels for contrast.

Exposure shift simulation

The slider applies an approximate linear-light 2EV exposure change to the rendered image and recalculates its histogram. A negative shift can darken clipped white pixels, but they remain flat: the missing texture cannot be recovered from a finished JPEG. The readout compares current clipped-pixel percentages with the source at 0 EV. The original download is never changed.

Clipping zebras

Turn on Clipping zebras below the photo to mark near-clipped areas in the preview. Magenta stripes mark pixels where any RGB channel is 253–255; cyan stripes mark pixels where every RGB channel is 0–2. These warning thresholds are fixed for this teaching view. The marks do not alter histogram counts or the original download; they are included in the annotated photo export while enabled.

App manual

  1. Choose a photo, drop a file, or click a demo thumbnail. Use Add photos from folder to add photos to the sample gallery; they are saved in this browser. Open image folder loads a photo for analysis only. The B&W preview toggle changes only the displayed photo, using weighted luminance. Match highlights switch to black on bright pixels.
  2. Select B&W, R, G, B, or RGB to change the histogram view.
  3. Use Vertical scale, RGB scale (Common or Individual), Graph, and Hover mode beside the histogram. Open the collapsed Exposure simulation to compare exposure shifts. Adjust photo overlay settings below the photo.
  4. Download the histogram PNG, photo with graph, unchanged original, or exact histogram CSV beneath the preview.
  5. Open Options below the photo for overlay placement, size, and opacity.
  6. Open Exam generator at the bottom. Select at least two files or a folder to make one shuffled exam and answer; preview or download each.

Author

Photo Histogram Lab was created by Jean-Paul Tousch. Contact: jean-paul@tousch.lu.

All analysis happens in your browser. Images are not uploaded. Very large images may be downsampled for analysis.