Light enters the camera and hits a sensor
A photo begins when light bounces off an object and travels into your camera's lens. The lens focuses that light onto a sensor — a tiny electronic chip covered in millions of light-sensitive spots called pixels. Each pixel records how bright the light is at that exact location. The sensor does not see color the way your eye does; instead, it measures red, green, and blue light separately, then combines those measurements to create every color in the final image.
The amount of light that reaches the sensor depends on three things you can control: how wide the lens opens (called the aperture), how long the shutter stays open (the exposure time), and how sensitive the sensor is set to be (the ISO). A bright day needs less light to reach the sensor, so you might use a smaller opening or faster shutter. A dark room needs more light, so you open the lens wider or leave the shutter open longer.
Key Takeaways
- Light reflects off your subject, passes through the lens, and strikes a sensor made of millions of light-sensitive pixels that each record brightness and color.
- The camera converts the light information into electrical signals, then translates those signals into numbers that represent each pixel's color and brightness.
- Your camera stores these numbers as a digital file — either a raw file with all the sensor's original data, or a compressed format like JPEG that throws away some detail to save space.
- When you view the photo on a screen, the device reads those numbers and tells its pixels which colors to display, rebuilding the image from the original light information.
- Editing software can change the numbers in the file, making the image brighter, darker, more colorful, or sharper without affecting the original light that hit the sensor.
The sensor converts light into electrical signals
Once light hits a pixel on the sensor, it knocks electrons loose from the silicon material. The more light hits that pixel, the more electrons are released. The camera's electronics count those electrons and convert the count into a number — typically a value between 0 (no light) and 255 (maximum light). This happens for each of the three color channels (red, green, blue) at every pixel location on the sensor.
A modern camera sensor might have 24 million pixels, which means the camera is recording 24 million separate brightness measurements, times three colors, all in a fraction of a second. The camera's processor collects all these numbers and organizes them into a grid that matches the physical layout of the sensor. This grid of numbers is the raw data that will become your photo.
The camera stores the data as a file
Your camera does not store the raw numbers directly. Instead, it processes them and saves them in a format your computer and phone can read. The most common format is JPEG, which compresses the data to save space. Compression works by throwing away some of the detail — the camera looks for areas of similar color and stores them as a single value instead of recording every pixel separately. A JPEG file is much smaller than the original sensor data, which is why you can fit thousands of photos on a memory card.
Some cameras also offer a RAW format, which stores the original numbers from the sensor with little to no compression. RAW files are much larger, but they contain all the detail the sensor captured. If you shoot in RAW, you have more freedom to adjust brightness, color, and contrast later without losing quality, because you are working with the complete original data.
Your phone's camera usually saves only JPEG files. Professional cameras and advanced hobbyist cameras often let you choose between JPEG and RAW, or shoot both at once.
Your screen rebuilds the image from the numbers
When you open a photo on your phone or computer, the device reads the file and extracts all those numbers. For each pixel location, it reads the red, green, and blue values and tells the screen's pixels to display that exact color. Your screen is made of millions of tiny colored dots — red, green, and blue — arranged in a grid. By controlling how bright each colored dot glows, the screen can display any color imaginable. The screen reads through the entire grid of numbers and lights up each dot to match, rebuilding the image pixel by pixel.
This is why the same photo can look different on different screens. A phone screen, a computer monitor, and a printed photo all display color differently. The numbers in the file stay the same, but each device interprets them according to its own capabilities and settings.
Editing software changes the numbers without losing the original
When you use editing software to brighten a photo, you are not actually changing the light that hit the sensor — that moment is gone. Instead, the software reads the numbers in the file and multiplies them by a new value. To brighten the image, it might multiply every number by 1.2, making each pixel slightly brighter. To increase color saturation, it adjusts the difference between the red, green, and blue values at each pixel.
If you are editing a JPEG file, each change you make is permanent — the software overwrites the original numbers. If you are editing a RAW file, many editing programs create a separate instruction file that tells the software how to display the RAW data without actually changing the original numbers. This is why RAW editing is considered safer: you can always go back to the original sensor data if you change your mind.
Lenses focus light to create a sharp image
The lens is a curved piece of glass that bends light rays so they all converge at the same point on the sensor. Without a lens, light would scatter in all directions and the sensor would record only a blur. The lens's shape and thickness determine how much it bends light and how close or far away an object needs to be to appear sharp on the sensor.
The focal length of a lens — measured in millimeters — describes how much the lens magnifies the scene. A 50mm lens on a standard camera shows the scene roughly as your eye sees it. A 24mm lens shows a wider view, like stepping back from the scene. A 200mm lens shows a narrower, magnified view, like zooming in. Zoom lenses change their focal length, so a single lens can show wide or narrow views.
The lens can only focus light from objects at a certain distance. If an object is too close or too far away, its light will not converge exactly on the sensor and it will appear blurry. The focus distance is the distance from the lens to the object that appears sharpest. Modern cameras use motors to adjust the lens position automatically, measuring which distance produces the sharpest image and stopping when they find it.
Color and brightness depend on how much light reaches the sensor
The brightness of a photo is determined by the total amount of light that reaches the sensor. More light means higher numbers in the file, which displays as a brighter image. Less light means lower numbers, which displays as darker. If too little light reaches the sensor, the numbers are so low that the image looks black and you cannot see detail. If too much light reaches the sensor, the numbers max out at 255 and you lose detail in the bright areas — this is called overexposure.
Color depends on the ratio between the red, green, and blue values at each pixel. If red and green are both high but blue is low, the pixel displays as yellow. If all three are equal, the pixel displays as gray or white. The sensor measures these three colors separately, so the camera can record a full-color image even though each pixel is only one physical location on the sensor.
Frequently Asked Questions
Why do photos look different on my phone than on my computer?
The numbers in the photo file are the same, but each screen displays color and brightness differently. Phone screens, computer monitors, and printed photos all have different color ranges and brightness levels. The file itself has not changed — only how the device interprets it. Adjusting your screen's brightness and color settings will change how the photo looks without changing the file.
What is the difference between optical zoom and digital zoom?
Optical zoom uses the lens to magnify the scene before the light hits the sensor, so you capture more detail. Digital zoom crops the image after the sensor has recorded it, which means you are throwing away pixels and losing detail. A photo taken with optical zoom will look sharper when enlarged than one taken with digital zoom at the same magnification.
Can I recover detail from a photo that is too dark or too bright?
If you shot in RAW, you have more room to recover detail because the file contains all the original sensor data. If you shot in JPEG, the camera has already thrown away some information, so recovery is limited. Brightening a very dark JPEG will make it grainy because you are amplifying the small amount of data that was recorded. Darkening an overexposed JPEG will not bring back detail in the blown-out areas because those numbers are already at their maximum.
Why do photos taken in low light look grainy?
In low light, the sensor receives very little light, so the numbers recorded are small. To make the image visible, the camera amplifies these numbers (raises the ISO), which also amplifies the random electrical noise in the sensor. This noise appears as grain or speckles in the final image. Higher ISO settings amplify the noise more, so low-light photos taken at high ISO look grainier than those taken at lower ISO.
Does deleting a photo remove it from the memory card permanently?
Deleting a photo marks the space on the memory card as available for new data, but the original file is not when ready erased. Until you take new photos that overwrite that space, the deleted file can sometimes be recovered with special software. Formatting the memory card erases all files and prepares it for new photos, but even then, recovery may be possible until new data is written over the old locations.