Abstract
How many bits of information are in a digital photo? It depends on how many possible colors there are. Learn how to choose the right number of colors and bits to post your photo on the web or send it to your best friend.Objective
The objective is to investigate the relationship between the number of bits in a digital image and the number of colors and file size of the image.
Introduction
A bit is the smallest unit of measurement regarding computer data. Each bit indicates one of 2 different states, on (represented by a 1) or off (represented by a 0). A single bit does not convey much information, but you can string bits together in binary codes to represent numbers, words, music, pictures, or any other type of computer data. In fact, all computer data is coded in binary numbers, and looks like a series of zeros and 1's:
00101011100100100101110110110101000000110111101001101010
For a digital photo, bit depth is the number of colors that can be shown in the image. Because the bits can only indicate one of 2 possible states (0 or 1), the number of colors can only be powers of 2. Some examples of bit depths (and the calculation of the decimal number for those of you who know exponents) for image files are: 2-bit (2^2 = 4 colors), 4-bit (2^4=16 colors), 8-bit (2^8=256 colors), 16-bit (2^16=65,536 colors), and 24-bit (2^24=16,777,216 colors).
"Every color pixel in a digital image is created through some combination of the three primary colors: red, green, and blue. Each primary color is often referred to as a "color channel" and can have any range of intensity values specified by its bit depth. The bit depth for each primary color is termed the "bits per channel." The "bits per pixel" (bpp) refers to the sum of the bits in all three color channels and represents the total colors available at each pixel. " (McHugh, 2005)
The larger the bpp is, the more colors can be used in the image. The smaller the bpp is, the less colors can be used in the image. Since images with more colors contain more information, they have larger file sizes. In this way, the bpp of an image is related to the file size and the number of colors.
In this experiment you will change the number of colors in a digital photo and measure the effect on file size and bpp and download time. Will the file size and download time always increase if the bpp increases? How will changing the bpp of an image change the number of colors that are possible? Is the relationship linear?
Terms, Concepts and Questions to Start Background Research
To do this type of experiment you should know what the following terms mean. Have an adult help you search the internet, or take you to your local library to find out more!
Bibliography
Materials and Equipment
Experimental Procedure
![]() |
![]() |
![]() |
| File Name | Number of Colors | Bits Per Pixel | File Size (Kb) | Download Time (sec) | Speed (Kbps) |
| puppy.jpg | |||||
| puppy1.gif | |||||
| puppy2.gif | |||||
| puppy3.gif |
| Bits Per Pixel | Number of Colors Available |
| 1 | 2 |
| 2 | 4 |
| 3 | 8 |
| 4 | 16 |
| 5 | 32 |
| 6 | 64 |
| 7 | 128 |
| 8 | 256 |
![]() |
Variations
Credits
Sara Agee, Ph.D., Science Buddies
Last edit date: 2006-06-09 13:00:00
If you like this project, you might enjoy exploring careers in Photography, Digital Photography & Video.
![]() |
Cartographers and Photogrammetrist Maps can give us much more information than ways to get from A to B. Maps can give us topographic, climate, and even political information. Cartographers and photogrammetrists collect a vast amount of data, such as aerial data and survey data to produce accurate maps and models. For example, by collecting rainfall data, a cartographer can make an accurate model of how rainfall can affect an area's watershed. The maps and models can then be used by policy makers to make informed decisions. |
![]() |
Film and Video Editor Lights, camera, action! It takes more than actors to put an exciting motion picture movie together. It takes film and video editors and cutting-edge computer technology to make an exciting movie that people want to see. From the many thousands of minutes of film and video, the editor has to choose the best shots to tell a cohesive and compelling story. In addition to having an artistic bent, the film and video editor must relish working with complicated computer equipment. If you would like to combine your artistic talents and your computer skills into a great career, then read on to learn more about film and video editors. | |
![]() |
Audio and Video Equipment Technician Ever wondered who makes sure the jumbotron works at the super bowl? Or that the microphones work at a presidential inauguration? These are the tasks of an audio and video equipment technician. Audio and video equipment technicians work to set up and operate audio and video equipment, including microphones, sound speakers, video screens, projectors, video monitors, and recording equipment. | |||
|
Join Science Buddies
Become a Science Buddies member! It's free! As a member you will be the first to receive our new and innovative project ideas, news about upcoming science competitions, science fair tips, and information on other science related initiatives. |