What’s Compression?
Monday January 05th 2009, 4:05 pm
Filed under: Concepts

My tutorial What’s 24-bit Color? explains how a computer draws an image, by flipping billions of microscopic switches. Compression, in a nutshell, means a way to flip fewer switches but get the same, or approximately the same, result.

Your average digital still camera, for instance, automatically compresses the images it shoots. Without compression, you would need to flip about 150 million switches on your memory card to save a six-megapixel photo. But the camera feeds numbers representing the image’s grid of colored dots through a series of equations, and comes up with a way to save your photograph using perhaps only 20 or 25 million switches. That means the final file takes up less space on your memory card–and if the math is clever enough, your eye might not be able to see any difference between it and the original.

If you’re interested in learning more, AVPreserve has a detailed description of this process. But for a useful everyday analogy, just look at a page of sheet music:

See the repeat signs–those heavy vertical black lines with pairs of dots?

Before printing, when music was all copied by hand, composers invented a number of special instructions to save the copyists time. The repeat sign is one of these. The composer figures out which parts of the piece repeat themselves, and replaces them with a repeat sign that takes up much less space on the page. Here, a piece of music taking up two pages is reduced to one. If all the repeat signs were taken out, it would look something like this:

And that’s pretty much how the simplest kinds of compression work–millions, billions, and trillions of times over.

Comments Off on What’s Compression?



This blog was… how do I say it? Relevant!!

Finally I’ve found something which helped me. Many thanks!

[WORDPRESS HASHCASH] The poster sent us ‘0 which is not a hashcash value.

Comment by quest bars 02.18.16 @ 6:32 pm

Hi friends, good post and good arguments commented here, I am really enjoying
by these.

[WORDPRESS HASHCASH] The poster sent us ‘0 which is not a hashcash value.

Comment by quest bars 02.19.16 @ 12:09 am

Excellent goods from you, man. I’ve understand your stuff prior to
and you are just too magnificent. I really like what you’ve bought right here, really like what you’re saying and the
way in which in which you say it. You’re making it entertaining and you still care for
to keep it smart. I cant wait to read far more from
you. That is really a wonderful site.

[WORDPRESS HASHCASH] The poster sent us ‘0 which is not a hashcash value.

Comment by plenty of fish dating site of free dating 02.23.16 @ 1:34 am

Hi there, You’ve done a great job. I’ll definitely digg it and personally recommend to my friends.
I am sure they’ll be benefited from this web site.

[WORDPRESS HASHCASH] The poster sent us ‘0 which is not a hashcash value.

Comment by plenty of fish dating site of free dating 02.23.16 @ 9:14 am

It’s actually very complicated in this busy life to listen news on Television, therefore I
simply use the world wide web for the reason, and take the newest news.

Feel free to visit my site: WiltonSMunch

[WORDPRESS HASHCASH] The poster sent us ‘0 which is not a hashcash value.

Comment by WiltonSMunch 02.29.16 @ 11:28 am