A chip that counts light
Behind the tiny lens sits an image sensor — a chip covered in millions of microscopic light detectors called pixels. When you take a photo, the lens focuses the scene onto this grid, and each pixel measures how much light landed on it during the exposure.
Pixels alone would see only brightness, so each one sits under a coloured filter — red, green or blue, in a checkerboard pattern with twice as many green as red or blue, matching our eyes' sensitivity. The camera's processor blends the grid into a full-colour image.
Decisions in a fraction of a second
Before you press the button, the camera is already working: it adjusts focus by shifting the lens until edges look sharpest, and meters the light to choose an exposure time and sensitivity. In dim scenes it may raise the sensitivity, trading a grainier image for a brighter one.
Phone sensors are tiny — far smaller than a fingernail — which limits how much light they can gather. Phones compensate with computation: many take several frames in a burst and merge them, averaging out noise and rescuing detail from shadows and highlights.
Millions of measurements, one picture
A 12-megapixel photo is twelve million separate light measurements, each converted to numbers and compressed into a file a few megabytes in size. Modern phones go further, recognising faces, skies and food to tune colours and sharpness region by region.
The photograph you see is therefore part measurement, part interpretation — the sensor's honest count of the light, finished by software that guesses how the scene should look. The optics have barely changed in a century; the computing is what is new.

