Related Links

  • Science Fair Project Guide

Project Summary

Difficulty  5 
Time required Short (several days)
Prerequisites Good computer skills; Project costs lower depending on printing method and number of images printed.
Material Availability Readily available
Cost Very Low (under $20) to Low ($20 - $50)
Safety No issues


Share this Project Idea!


Facebook Twitter Delicious Digg MySpace |More Services


Donate to Science Buddies

Sponsor

Sponsored by generous support from the AMD Foundation

AMD Changing the Game
Want to Develop Games?
AMD Foundation's partners offer cool programs for K-12 students
www.amd.com/changingthegame

Abstract

In this project you'll learn about how digital image files are encoded, and how digital images can be compressed so that the files take up less storage space and can be transmitted more quickly. You will also measure the quality of compressed and uncompressed images, which will give you important insights into the tradeoffs between file size and image quality.

Objective

The objective of this project is to compare at least two different image compression algorithms and rate them for:

Introduction

What's so important about image compression algorithms? With today's computers, DVDs and digital cameras, digital images are everywhere. For example, on websites images are used for advertising, and as illustrations and diagrams for articles. Image files can easily be huge (more on this later). Image compression is essential for DVDs and speedy downloading of webpages over a network connection.

What makes image files so big? Digital images such as photographs are generally encoded as rows and columns of pixels (from picture elements). This type of image format is called a raster image. The more pixels in each row and column, the better the resolution of the image. For example, an image that is 1280 pixels wide by 1024 pixels has better resolution than an image that is 640 pixels wide by 512 pixels tall. It will appear smoother, less "pixellated". But the higher resolution comes at the cost of four times as many pixels. In addition to spatial resolution, there is also the problem of color encoding. An image with 24 bits of color information for each pixel will generally look better than an image with only 16 bits of color information for each pixel. Again, the better the color resolution, the bigger the image file.

In order to make the most efficient use of images, it is important to match the spatial and color resolution of the image to the spatial and color resolution of the intended output device. For example, a typical computer screen has a spatial resolution of about 75 pixels per inch (also referred to as dots per inch or "dpi"), and color resolution of 24 bits per pixel. Printers, on the other hand, have much higher spatial resolution, anywhere from 300 dpi to as much as 9600 dpi horizontally by 2400 dpi vertically. Obviously, a high-quality printed image is going to be a lot bigger than the same size image displayed on a computer screen.

Image compression algorithms are designed to minimize image file size in order to speed up image data transmission. There are "lossless" algorithms, which have the property that all of the original information in the image can be recreated from the compressed image, and there are "lossy" algorithms, which sacrifice some of the original image information in order to compress the image further.

How much can an image be compressed with a "lossy" algorithm before you start to notice a difference in image quality? Do some types of images lose image quality more quickly than others? This project will help you to answer these questions, and more.

Terms, Concepts and Questions to Start Background Research

To do an experiment in image compression, you should do research that enables you to understand the following terms and concepts:

Questions:

Bibliography

Materials and Equipment

Experimental Procedure

  1. Do your background research, and test your knowledge by explaining the terms and concepts, and answering the questions in the section above.
  2. Select a set of images for your experiment.
    • From your background research, you should be able to form a hypothesis about which types of images will work best with each compression algorithm you test. Try to select images for both best- and worst-case for each algorithm.
    • If you take your own digital photographs, you will not have to worry about copyright issues.
    • If you download images from the Web, make sure that you have permission to use the image from the copyright holder (if any).
  3. Learn how to use your image-writing program to save images in compressed format.
    • Read about the different options in your program's help file.
    • Select "low", "medium" and "high" image quality compression settings for each algorithm you are using.
  4. Use your image-writing program to save each image with the "low", "medium", and "high" image quality settings you selected for each compression algorithm. Name each file so that you can tell which settings and algorithm were used to create it, and which original image it came from.
  5. Have your assistant help you to print the images, labeling them on the back with a coded name. Your assistant should be able to match the coded names to the original ones, but you should not know the code. All of the images should be printed with the same paper type, printer and printer settings.
  6. Study the images, and arrange them in order of image quality from best to worst. Then assign a "quality score" to the images, for example, on a scale of 1–10. If two or more images appear indistinguishable, rank them equally. Take notes on what features you used to rank the images as you did. (This is called a "blind" test, because you do not know which algorithm and settings produced which image.)
  7. After all of the images have been rated, have your assistant reveal the codes. Now you can add the compression information to your ratings, and make comparisons.
  8. Compare the trade-offs in file size vs. image quality for different image types. For example, you might want to make a graph of compression ratio vs. your image quality ranking. Can you draw any conclusions about when image compression is worthwhile and when it is not? Or how much compression is acceptable for a particular purpose (say, sending a photo album of your summer vacation to your cousin by email).

Variations

Credits

Andrew Olson, Ph.D., Science Buddies


Last edit date: 2008-05-29 00:00:00


Career Focus

If you like this project, you might enjoy exploring careers in Video & Computer Games.

Multimedia Artist or Animator
If you've ever watched a cartoon, played a video game, or seen an animated movie, you've seen the work of multimedia artists and animators. People in these careers use computers to create the series of pictures that form the animated images or special effects seen in movies, television programs, and computer games.
 



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.


Support Science Buddies

If this website has helped you, won't you consider a small gift so we may continue developing resources to help teachers and students?

 



 

Science Buddies gratefully acknowledges its Presenting Sponsor
 
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.


Science Fair Project Home      Our Sponsors      Partners      About Us      Volunteer      Donate      Contact Us      Research Grants & Outreach      Site Map

Science Fair Project Ideas      Science Fair Project Guide      Ask an Expert      Blog      Teacher Resources      Parent Resources      Student Resources      Science Careers      Join Science Buddies     


Privacy Policy Science Buddies

Copyright © 2002-2010 Kenneth Lafferty Hess Family Charitable Foundation. All rights reserved.
Reproduction of material from this website without written permission is strictly prohibited.
Use of this site constitutes acceptance of our Terms and Conditions of Fair Use.