Handbook contentsChapter 1 of 16

Part 1 · How an image works

  1. 01Pixels, sensors and bits
  2. 02RGB and colour channels
  3. 03The nature of contrast
  4. 04Light and volume
  5. 05Skin tone and colour contrast
  6. 06Reading by the numbers

Part 2 · God mode tools, in workflow order

  1. 07Workflow and workspace
  2. 08Foundation: colour first
  3. 09Cleaning the skin
  4. 10Skin check, frequency separation
  5. 11Dodge & burn
  6. 12Eyes, hair, shape, details
  7. 13AI check
  8. 14Colour and grading
  9. 15Delivery

Part 3 · A worked example

  1. 16Worked example

Chapter 1

What a digital photo is made of: pixels, sensors and bits

What a pixel is, how a sensor records colour, how RAW differs from JPEG and why heavy retouching needs 16-bit. With a zoom right down to real pixels.

5 min read Đọc bằng tiếng Việt

Before you pick up a brush to remove a blemish or contour a cheekbone, you need to know what the image on your screen is actually made of. Understanding the material ensures you don't ruin it: you won't destroy skin texture or break smooth tonal transitions.

This entire handbook revolves around one idea: hi-end retouching is about controlling the contrast of light and colour at its proper scale. But before we discuss contrast, we need to go down to the smallest unit of an image.

An image is a grid of colour squares

Zoom far into a portrait, and you will see small squares packed tightly together. Each square is a pixel (picture element), the smallest unit of a digital image. Each pixel contains only one solid colour, with no gradients or patterns inside it.

A pixel's colour is recorded by three numbers, corresponding to three colour channels. When you open a file, the software does not know what a "pore", a "strand of hair", or the "edge of a nostril" is. The file only contains a grid of colour squares sitting side by side.

Every detail the eye recognises comes from the difference in brightness and colour between adjacent squares. A bright highlight on the cheekbone is simply an area of pixels with high values. A freckle on the nose is just a cluster of a few pixels that are significantly darker than the surrounding skin.

Therefore, retouching ultimately comes down to changing the numbers inside these squares. Smoothing the skin means reducing the difference between adjacent squares; sharpening the eyes means increasing that difference.

Drag the Zoom slider slowly from left to right: from seeing the whole eye area until the pixel grid appears. Past about 40x, notice the three numbers inside each square, and tap a square to read its colour.

The eye area of a close-up portrait at the camera's native resolution
Original straight-out-of-camera image, eye area. Drag the Zoom slider: from 12x upwards the pixel grid appears; from about 40x each square shows three R, G, B numbers. Interactive illustration: drag and tap to try it. Needs JavaScript.

Resolution: how many squares are enough

A 24-megapixel camera produces an image of about 6,000 × 4,000 pixels, or 24 million colour squares. On a close-up portrait, a single pore is only a few pixels wide; a small blemish or a fine baby hair is maybe a few dozen pixels long.

When you open the full image on a screen, the software has to compress 6,000 pixels into a much narrower frame. Scaling down merges multiple pixels into one, hiding tiny blemishes, patches of dry skin, or harsh colour transitions in the under-eye area. The image looks clean when scrolling past, but printing it large or cropping tightly reveals everything.

This is why retouchers always check at 100%: one image pixel perfectly matches one screen pixel, with no downscaling steps covering up flaws. For printing, the standard is usually 300 ppi (pixels per inch): a 6,000-pixel edge can be printed at around 50 cm while remaining sharp.

The sensor only measures light, it does not see colour

The final image has millions of colours, but the camera sensor does not record colour. Each photosite only measures the amount of light falling on it, from completely dark to clipping white.

To get colour, a colour filter array is placed in front of the sensor, usually a Bayer filter: repeating 2 × 2 grids consisting of 1 red, 2 green, and 1 blue square. Green is doubled because the human eye is most sensitive to this colour region. Thanks to the filter, each point measures the brightness of a single colour.

For every pixel to have all three colours, the camera or software must demosaic (or debayer): guessing the two missing colours at each point based on the surrounding points.

A RAW file holds the sensor's original measurements, usually in 12 or 14-bit, undemosaiced, without a tone curve applied, and with no fixed white balance. A JPEG is an image where the camera has already completed these steps and compressed the data down to 8-bit. For a retoucher, RAW provides vastly more headroom when pushing highlights and shadows, recovering blown areas, and correcting colour casts.

Toggle between the three views below: what the sensor actually measures, how the filter divides the information, and the result after demosaicing.

A 56 × 36 pixel patch at the edge of the lips, rendered as a Bayer colour filter: each square has only one red, green, or blue colour
A 56 × 36 pixel patch at the edge of the lips. Three views: the sensor only measuring brightness, through the colour filter, and after demosaicing. Interactive illustration: drag and tap to try it. Needs JavaScript.

Bit depth: how many levels per channel

Bit depth is the number of levels each red, green, and blue channel is divided into. In 8-bit, each channel has 2⁸ = 256 levels; the three channels combined give 256 × 256 × 256, or about 16.7 million colours.

Bit depthLevels per channelCommonly found in
8-bit256JPEG, images delivered for the web
12-bit4,096RAW files of many cameras
14-bit16,384RAW files of many cameras
16-bit65,536Working files for heavy retouching, TIFF

16.7 million colours sounds like a lot, but it is not enough when you push the image hard. Lifting shadows with a steep curve or boosting contrast heavily forces values that are close together to spread further apart.

On an 8-bit image, smooth transitions like studio seamless paper, skies, or cheek volumes will lack intermediate levels and break into distinct steps: a phenomenon known as banding. High bit-depth data still has thousands of levels in between to fill those gaps.

Best practice: do heavy adjustments on high bit-depth data, and only drop down to 8-bit (JPEG) at the final step when exporting for the web. Try it below: select the bit depth when saving, then enable "After a strong brighten" and look at the dark corner of the background.

Dark studio background, smoothly transitioning from dark to brighter in one corner

The same studio background, saved in 4, 6, 8, or 16-bit, then heavily brightened. At 8-bit, stepped bands start to appear; at 16-bit, it remains smooth. Interactive illustration: drag and tap to try it. Needs JavaScript.

Applying this to retouching

  • Check at 100% before delivery. Blemishes and blotchy patches can hide when downscaled but cannot hide in print.
  • Keep RAW and high bit-depth data throughout the process. Avoid heavy contrast adjustments or localised skin retouching on an 8-bit JPEG.
  • Blemishes and skin texture are both differences between pixels. A good tool must fix the harmful difference without erasing the healthy texture squares around it. Chapter 3 explains in detail how to distinguish between these two types of differences.

In Fotoreto. Fotoreto reads camera RAW files directly, performing calculations on the graphics card using floating-point numbers before rounding when saving. The Z key toggles between fit to screen and 100%. In God mode, when saving a version for print, you can choose 16-bit TIFF or 16-bit PNG, along with the sRGB, Adobe RGB (1998), ProPhoto RGB, or Display P3 colour profile. The benefit is smooth 16-bit colour transitions that won't suffer from banding if edited further in Photoshop (while the colours remain within the sRGB gamut).

Summary

  • A digital image is a pixel grid. Each pixel has one colour, recorded by three numbers; skin blemishes are just differences between adjacent squares.
  • The sensor only measures light; colour is obtained through a Bayer filter and the demosaicing step.
  • RAW retains original 12–14-bit measurements, providing much more headroom than an 8-bit JPEG.
  • Heavy editing in 8-bit easily causes banding on backgrounds and cheek volumes; work on high bit-depth data and only drop to 8-bit when delivering.
  • Always check skin texture at 100%.

Each pixel records three R, G, B numbers. The next chapter explores how those three numbers create colour, and why each channel tells a different story about the skin.