VCE IT Lecture Notes by Mark Kelly, McKinnon Secondary College
File Formats |
||
|
When data are saved to a file, they must be organised so that programs can re-read and correctly interpret the contents of the data. There's not much good saving a digital photo if your web browser or graphics editor can't read it. There are standard file formats used to ensure that different types of data can be reliably saved and read, often by a variety of programs: not just the program that saved the data file. For some data types, there are different formats to choose from. Selecting the right one for a particular job can require some judgement. The file format is indicated (at least on Windows platforms) by the filename extension: the letters after the last dot in the filename (e.g. "invoice.doc", the extension is "doc" which indicates it's probably* a Microsoft Word document). Most formats sharing a purpose (e.g. DivX and WMV) can be converted from format to format, usually with a significant cost in terms of quality loss. Uncompressed or lossless formats do not suffer this problem. Let's look at common file formats for saving common data types, and factors to consider when choosing amongst competing formats. |
||
| DATA TYPE | Filename Extension | Comments |
| Graphics | GIF | Compressed (lossless) limited to 256 colours. Good for line art, logos |
| JPG | Compressed (lossy). Millions of colours, good for photos | |
| PNG | Compressed (lossless) - open version of GIF format | |
| TIFF | Compressed (lossless) | |
| BMP | Uncompressed | |
| Movies | DivX | Container format |
| WMV | Highly compressed | |
| AVI | uncompressed | |
| MPEG | Good for movies | |
| Audio | MP3 | Compressed, commonly used for music |
| WAV | Uncompressed | |
| WMA | Compressed | |
| OGG | Lossless compression | |
| FLAC | Lossless compression | |
| Words | DOC | Microsoft proprietary format |
| TXT | Universal, basic text format | |
| RTF | Rich text format can be read by most programs | |
| Data | CSV | Comma-separated values, raw data, universally readable |
| ACDB? | Microsoft Access format | |
| FP7 | Filemaker format | |
| XML | Universal flexible data structure | |
* Since programmers can invent their own file extension, there are a few cases of ambiguous extensions.
Back to the IT Lecture Notes index
Back to the last page you visited
Created 24 Mov 2010
Last changed: November 24, 2010 3:25 PM
VCE IT Lecture notes copyright © Mark Kelly 2001-