|
Abstract Jpeg, bmp, gif, tiff…do these just look like words that you and your friends might make up for your own secret language? They are actually just a few of the file formats (which means “types”) that you can use to save your favorite photo on your computer. But does it matter which one you use? Try this simple science fair project to find out and you’ll never choose the wrong one again!Objective In this science fair project, you will test if saving an image file in a different format will change the file size. Introduction What do you do with digital images? Email photos from a digital camera or send them from your cell phone to friends? Scan and store your best drawings? Submit fan art to Club Penguin? Post to a family blog, website, or Facebook page? Look at a webpage with a gallery of pictures of your favorite actress? In the United States, almost everyone sees or uses digital images on a daily basis, but what exactly is a digital image file? A digital image file is just like any other computer file containing information. Examples of other digital files you might use without even knowing it include the file that stores your highest score in a computer game (usually this is something the game goes and looks up in the file without even asking you), or the word processing file containing the latest report you typed and saved for school. For digital images, and all other types of documents, information is stored as a file of a certain size, depending upon how much information is in the image. For instance, imagine you have a folder for a class project. If you have to write a 2–3 page report, the folder won’t need to be very thick, right? But imagine you’ve got to turn in a project with a long report, several images, and a bunch of graphs. The folder to hold it all would need to be bigger. The information on a computer is stored as bits, and the size of the file is measured in bytes (pronounced just like a “bite” of food). So the more bits of information you have in your image file, the more bytes of space the file will be. The bits of information in an image file include things like which colors to use, how many colors to use, where to put pixels (which are the smallest parts of an image) of color, how many pixels to use, and how big the image is. All of this information is stored in the file when you save it so that you can open it and use it later. When you save an image file on your computer, the program will have you choose a format in which to save it. Here are a few of the most common file formats used by most image editing programs:
If the information in the image is the same, then why are there so many different file formats? Well, the information in a file is stored using code (a set of instructions for the computer). The data is encoded in a different way, depending upon the format you choose to save it in. When you open the file, the program reads the code to know how to put the data back together and give you your image. But back to why we need different ways of writing the data into code. One reason is that different image editing programs have different sets of codes that they can open and interpret (understand). So, perhaps program A can read JPEGs, but program B can only read BMPs. If your file was saved in a format that your image editing program can’t “read,” you might not be able to open it! Another reason for different file formats is that different codes have different complexities (levels of difficulty) and take up different amounts of space on your computer. Some codes are very complex, so they take a lot of processing to interpret, and thus, result in larger file sizes. This can be a problem if you want to email your photo to a friend—it could take a long time for him or her to download and view it. On the other hand, a more simple code that would give a smaller file size, allowing for fast download and viewing, might also oversimplify your data, leading to data loss and poor image quality. What does this all mean when you save your photos? It means you need to match the file format you choose with the way you want to use it. Are you going to email it to a friend, print it out, or put in on a website? If you’re e-mailing just one photo to a friend, it might not matter how large the file is—chances are, with today’s Internet, they can download it pretty quickly. But what if you send all 60 pictures from your latest vacation? Nobody wants to sit in front of their computer and wait 10 minutes or more for all those photos to download! This is a case where smaller file sizes, and thus a faster download, matters. On the other hand, a picture whose information has been reduced so that the file size is very small might not look good if it is take printed on their computer or taken to a photo store and printed as a large picture to frame. So if you get lucky enough to run into your favorite movie actor at the airport and take a picture with him, saving that photo in some file formats might be a bad idea if you plan on hanging a large version of it on your bedroom wall! In this science fair project, you will investigate the link between image file format and file size. After changing the format of the image you choose, what will happen to the file size? Terms, Concepts, and Questions to Start Background Research To do this science fair project, 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
Shop for Supplies at Science Buddies Online Store
|
| Trial | File Name | File Format | File Size (MB) |
| #1 | |||
| #2 | |||
| #3 | |||
| #4 |
Variations
Credits
Sara Agee, PhD, Science Buddies
Last edit date: 2010-04-05 17:14:44
If you like this project, you might enjoy exploring related careers.
![]() |
Computer Programmer Computers are essential tools in the modern world, handling everything from traffic control, car welding, movie animation, shipping, aircraft design, and social networking to book publishing, business management, music mixing, health care, agriculture, and online shopping. Computer programmers are the people who write the instructions that tell computers what to do. |
|
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. |