Search Computing Unplugged's 16,078 article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Understanding how image compression works (continued)

In general, at this stage of our technology, the capture can be astoundingly high quality.

So think it through. If you're capturing at very high resolution and at very high quality, you're going to be capturing a lot of data. A whole lot of data. But what if you could take that data, say from a song, and save it in a format that takes a lot less storage? We recently captured a four minute song sung by a friend. When stored in the best quality format possible, that song took up 21 megabytes. But when it was converted to MP3 format, that song took up only 969K, less than 5% of the original data size.

Incidentally, this is why the music industry is losing its collective mind. Before MP3 came about, a song took forever to download. But when you can save the song to a format that's only 5% of the original size, "forever" becomes just a few minutes. And that's why file sharing services such as Napster and Kazaa took off. The "enabling technology" was the MP3 format, and specifically the compression algorithm in MP3.

So how does it work? What magic happens that makes an MP3 take only 5% of the storage of the original? What magic makes a JPEG take a tenth of the space of a TIFF image file?

One word: compression. Two words: lossy compression.

With regular compression, you want to be able to decompress an item later, and have that item be exactly the same as what was originally compressed. Think about your hopes and desires when you ship something to your mom via UPS. When you stick the object in the box, you want it to come back out in perfect condition (or at the very least, the exact same condition it was in when packed into the box originally). Perfect reproduction happens with regular data compression. When you compress a file and then decompress it, the original and the decompressed file are exactly the same.

With me so far?

Now, the thing is, you can only save so much space when you're using exact (or "lossless," meaning "nothing's lost") compression.

Lossy compression compresses a file so that when it's later decompressed, it appears to be the same. But it isn't. What happens is that some astoundingly brilliant algorithms delete data from the file in such a way that when the file is later reconstructed, you don't notice the deletions.

In an MP3, this means deleting the sounds the human ear can't hear. In photographs, this means deleting the variations in color and tone the human eye typically doesn't notice. By doing this sort of perceptual compression, developers are able to save a huge amount of additional storage.

Now, of course, if you take a picture, you may or may not want to be able to get all the pixels. And that's why you may or may not want a camera that uses lossy compression as its default format.

How JPEG deals with compression
As mentioned above, JPEG is a lossy format. But the degree of loss can often be controlled by you. If you've got more storage space, you'll want less loss. At higher degrees of loss, you can start to see some "artifacting," where the compression is no longer making a perfectly clear reproduction upon expanding.


« Previous  ·  1  ·  2  ·  3  ·  Next »
Other articles you might like
Home > Gear > Cameras (10 articles)
   A trick for saving some work when your system freezes (Vista edition)
   Use of camera phones expected to triple in 2004
   Introducing the Your First Digital Camera audio workshop
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent Computing Unplugged Articles
The iPad defenders have spoken
Make Mafia Wars an offer it can't refuse
Yet another toaster oven not to buy: Cuisinart TOB-50
Heather in Kuwait: what gadgets to bring on a long trip
Invade my privacy, please.
The iPad: Apple's latest heartbreaker
Recruiting the Army of Two on PSP
Computing Unplugged News
Trashed Laptops: Send Us Your Photos
First Look: Kindle for Mac
Palm's sales slump as its new phones struggle
Hacker Disables More Than 100 Cars Remotely
HSN Launches Mobile Shopping App for Android Devices
Resco MobileCRM Studio
15 percent off Proporta products on St. Patrick's Day
>> Read all the news
More from the ZATZ journals
David Gewirtz Online: CNN commentary and analysis
DominoPower: Application development, William Shatner, and the origin of the universe
OutlookPower: More about disappearing text
-- Advertisement --

Sent Items Organizer
When you need to file your sent email into their proper folders based on keywords or who it's to. It's also perfect for shared mailboxes.

It also adds a "Send And File" toolbar button while you're composing (similar to the way Lotus Notes used to work) for quick and easy filing.

Find out more!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 2003-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login