The digital camera is one of the most remarkable instances of this shift because it is so truly different from its predecessor. Conventional cameras depend entirely on chemical and mechanical processes -- you don't even need electricity to operate them. On the other hand, all digital cameras have a built-in computer, and all of them record images electronically.
The new approach has been enormously successful. Since film still provides better picture quality, digital cameras have not completely replaced conventional cameras. But, as digital imaging technology has improved, digital cameras have rapidly become more popular.
In this article, we'll find out exactly what's going on inside these amazing digital-age devices.
Understanding the Basics
Let's say you want to take a picture and e-mail it to a friend. To do this, you need the image to be represented in the language that computers recognize -- bits and bytes. Essentially, a digital image is just a long string of 1s and 0s that represent all the tiny colored dots -- or pixels -- that collectively make up the image. (For information on sampling and digital representations of data, see this explanation of the digitization of sound waves. Digitizing light waves works in a similar way.)
If you want to get a picture into this form, you have two options:
At its most basic level, this is all there is to a digital camera. Just like a conventional camera, it has a series of lenses that focus light to create an image of a scene. But instead of focusing this light onto a piece of film, it focuses it onto a semiconductor device that records light electronically. A computer then breaks this electronic information down into digital data. All the fun and interesting features of digital cameras come as a direct result of this process.
In the next few sections, we'll find out exactly how the camera does all this.
![]() A CMOS image sensor |
The image sensor employed by most digital cameras is a charge coupled device (CCD). Some cameras use complementary metal oxide semiconductor (CMOS) technology instead. Both CCD and CMOS image sensors convert light into electrons. If you've read How Solar Cells Work, you already understand one of the pieces of technology used to perform the conversion. A simplified way to think about these sensors is to think of a 2-D array of thousands or millions of tiny solar cells.
Once the sensor converts the light into electrons, it reads the value (accumulated charge) of each cell in the image. This is where the differences between the two main sensor types kick in:
Differences between the two types of sensors lead to a number of pros and cons:
![]() Photo courtesy DALSA A CCD sensor |
Some typical resolutions include:
![]() Photo courtesy Morguefile The size of an image taken at different resolutions |
High-end consumer cameras can capture over 12 million pixels. Some professional cameras support over 16 million pixels, or 20 million pixels for large-format cameras. For comparison, Hewlett Packard estimates that the quality of 35mm film is about 20 million pixels [ref].
Next, we'll look at how the camera adds color to these images.
This isn't an error from rounding off or binary mathematical trickery. There is a real discrepancy between these numbers because the CCD has to include circuitry for the ADC to measure the charge. This circuitry is dyed black so that it doesn't absorb light and distort the image.
There are several ways of recording the three colors in a digital camera. The highest quality cameras use three separate sensors, each with a different filter. A beam splitter directs light to the different sensors. Think of the light entering the camera as water flowing through a pipe. Using a beam splitter would be like dividing an identical amount of water into three different pipes. Each sensor gets an identical look at the image; but because of the filters, each sensor only responds to one of the primary colors.
![]() How the original (left) image is split in a beam splitter |
The advantage of this method is that the camera records each of the three colors at each pixel location. Unfortunately, cameras that use this method tend to be bulky and expensive.
Another method is to rotate a series of red, blue and green filters in front of a single sensor. The sensor records three separate images in rapid succession. This method also provides information on all three colors at each pixel location; but since the three images aren't taken at precisely the same moment, both the camera and the target of the photo must remain stationary for all three readings. This isn't practical for candid photography or handheld cameras.
Both of these methods work well for professional studio cameras, but
they're not necessarily practical for casual snapshots. Next, we'll
look at filtering methods that are more suited to small, efficient
cameras.
The most common pattern of filters is the Bayer filter pattern. This pattern alternates a row of red and green filters with a row of blue and green filters. The pixels are not evenly divided -- there are as many green pixels as there are blue and red combined. This is because the human eye is not equally sensitive to all three colors. It's necessary to include more information from the green pixels in order to create an image that the eye will perceive as a "true color."
![]() |
The advantages of this method are that only one sensor is required, and all the color information (red, green and blue) is recorded at the same moment. That means the camera can be smaller, cheaper, and useful in a wider variety of situations. The raw output from a sensor with a Bayer filter is a mosaic of red, green and blue pixels of different intensity.
Digital cameras use specialized demosaicing algorithms to convert this mosaic into an equally sized mosaic of true colors. The key is that each colored pixel can be used more than once. The true color of a single pixel can be determined by averaging the values from the closest surrounding pixels.
Some single-sensor cameras use alternatives to the Bayer filter pattern. X3 technology,
for example, embeds red, green and blue photodetectors in silicon. Some
of the more advanced cameras subtract values using the typesetting
colors cyan, yellow, green and magenta instead of blending red, green
and blue. There is even a method that uses two sensors. However, most
consumer cameras on the market today use a single sensor with
alternating rows of green/red and green/blue filters.
These two aspects work together to capture the amount of light needed to make a good image. In photographic terms, they set the exposure of the sensor. You can learn more about a camera's aperture and shutter speed in How Cameras Work.
In addition to controlling the amount of light, the camera has to adjust the lenses to control how the light is focused on the sensor. In general, the lenses on digital cameras are very similar to conventional camera lenses -- some digital cameras can even use conventional lenses. Most use automatic focusing techniques, which you can learn more about in the article How Autofocus Cameras Work.
The focal length, however, is one important difference between the lens of a digital camera and the lens of a 35mm camera. The focal length is the distance between the lens and the surface of the sensor. Sensors from different manufacturers vary widely in size, but in general they're smaller than a piece of 35mm film. In order to project the image onto a smaller sensor, the focal length is shortened by the same proportion. For additional information on sensor sizes and comparisons to 35mm film, you can visit the Photo.net Web site.
Focal length also determines the magnification, or zoom, when you look through the camera. In 35mm cameras, a 50mm lens gives a natural view of the subject. Increasing the focal length increases the magnification, and objects appear to get closer. The reverse happens when decreasing the focal length. A zoom lens is any lens that has an adjustable focal length, and digital cameras can have optical or digital zoom -- some have both. Some cameras also have macro focusing capability, meaning that the camera can take pictures from very close to the subject.
Digital cameras have one of four types of lenses:
Next, we'll learn about how the camera stores pictures and transfers them to a computer.
![]() Photo courtesy HSW Shopper A CompactFlash card |
Digital cameras use a number of storage systems. These are like reusable, digital film, and they use a caddy or card reader to transfer the data to a computer. Many involve fixed or removable flash memory. Digital camera manufacturers often develop their own proprietary flash memory devices, including SmartMedia cards, CompactFlash cards and Memory Sticks. Some other removable storage devices include:
No matter what type of storage they use, all digital cameras need lots of room for pictures. They usually store images in one of two formats -- TIFF, which is uncompressed, and JPEG, which is compressed, but some use RAW format. Most cameras use the JPEG file format for storing pictures, and they sometimes offer quality settings (such as medium or high). The following chart will give you an idea of the file sizes you might expect with different picture sizes.
(uncompressed) |
(high quality) |
(medium quality) |
|
To make the most of their storage space, almost all digital cameras use some sort of data compression to make the files smaller. Two features of digital images make compression possible. One is repetition. The other is irrelevancy.
Imagine that throughout a given photo, certain patterns develop in the colors. For example, if a blue sky takes up 30 percent of the photograph, you can be certain that some shades of blue are going to be repeated over and over again. When compression routines take advantage of patterns that repeat, there is no loss of information and the image can be reconstructed exactly as it was recorded. Unfortunately, this doesn't reduce files any more than 50 percent, and sometimes it doesn't even come close to that level.
Irrelevancy is a trickier issue. A digital camera records more information than the human eye can easily detect. Some compression routines take advantage of this fact to throw away some of the more meaningless data.
Next, we'll tie it all together and see how a digital camera takes a picture.

But digital cameras also have a few disadvantages. A film camera can take a picture almost immediately when you press the button. Digital cameras, on the other hand, can take a few seconds, especially if they're making adjustments automatically. They also require more light than traditional cameras do. Sometimes, the abundant space on a memory card encourages people to take so many pictures that they're not sure what to do with them later.
By keeping a few tips in mind, it's easy to overcome the disadvantages and get a lot out of your digital camera. The first step is to know the basics of how camera works. A digital camera is a lot like a film camera, but it uses a sensor and a memory card in place of film. When you take a picture, a digital shutter opens and exposes the sensor to light. The sensor reacts to the light, and the memory card stores the resulting picture.
![]() |
The light that hits the sensor determines virtually everything about the picture. Your camera may be able make some adjustments, but it has to work with the amount and type of light that it receives. You can control how the light hits the sensor with three settings:
![]() |
On most cameras, you can manually adjust the aperture and shutter speed. This can reduce the amount of time between when you press the button and when the shutter opens. Most cameras also have a fully automatic mode that adjusts the settings, including the focus, for you. You can take lots of good, clear pictures with this mode. Many cameras also have several presets for capturing portraits, fast action or outdoor scenes.
![]() Most cameras have a selection dial or another means of changing its settings. |
But automatic exposure might not be best for every situation, so understanding f-stop, shutter speed and presets can make a huge difference in how well your camera works for you. Being able to set the exposure on your own will also let you cut down the amount of time between when you press the button and when the shutter opens. In other words, you can take the picture you want before the moment passes. You can learn more about setting exposure by taking several pictures of the same scene using different settings and seeing how the finished product changes.
Once you have a feel for the settings, there are a few other steps you can take to make get more from your camera:
![]() Image courtesy Morguefile A camera's resolution, measured in megapixels, affects picture detail and the maximum size of prints. |
But taking pictures is only the first step in using a digital
camera. Next, we'll look at how to organize, print and share your
pictures.
Many digital cameras come with software to help you manage your pictures. Often, the program will show you thumbnails, or miniature versions of your pictures, so you can quickly navigate through your collection. You can use the program to categorize your photos by date, subject matter or type. Many programs also let you make basic image corrections, like removing red eye. Or, you can use more advanced software, like Adobe Photoshop, to completely change the look of your pictures. See Digital Photography Basics for more details.
![]() Some digital cameras come with software, such as Kodak's EasyShare. |
After transferring pictures, some people get stuck -- they wind up with a computer full of images that they're not quite sure what to do with. But there are lots of options for sharing and displaying your pictures. You can print them, upload them to an image sharing site, e-mail them or incorporate them into a Web page.
You can print pictures at home on a photo printer, or you can send them to a printing service. Both options have some pros and cons. If you buy a printer, you can print your pictures right away. Many printers are portable, so you can take them with you on vacation and print photos as you go. But the cost of the printer, ink and paper can add up -- in general, this is an expensive way to print your photos.
![]() Image courtesy Amazon |
Most of the time, using a professional printing service is a more economical option. You can make standard-sized prints for a few cents each and very large prints for a few dollars. Typically, you sign up for a free account, upload the photos you want to print, and place your order. Sometimes, you can take CDs of images to an in-store kiosk and place your order there.
Using a professional service is generally cheaper than buying your own printer, and your prints will probably be better quality. However, uploading the pictures can take time, since you'll want to send full-sized, high-resolution pictures. You'll also have to wait a few days for your prints to arrive.
If you're going to share your photos via e-mail, it's a good idea to re-size them before you send them. Digital cameras can create very large image files, and these files can take a long time to download. To reduce the size of your pictures, open them in your photo editing software. Make the files smaller in one of two ways:
If you'd rather share your photos in an online gallery than via e-mail, you can start an account on an image-sharing site like Flickr, Fotki or Snapfish. Your camera's software may also include automatic uploading options. Many of these services are free, but some limit how many pictures you can upload per month or how much disc space you can use. CNET has a good comparison of online sharing and printing sites.
Finally, some people start taking lots of pictures after buying a digital camera -- so many that sorting them and choosing which ones to print becomes a chore. Rather than taking hundreds of pictures in the hope of getting a few good ones, it's a good idea to learn a little about color, light and composition.