DPChallenge: A Digital Photography Contest You are not logged in. (log in or register
 

DPChallenge Forums >> Tips, Tricks, and Q&A >> Compression
Pages:  
Showing posts 1 - 5 of 5, (reverse)
AuthorThread
03/11/2004 01:29:14 PM · #1
If i use something like win rar or whatever to compress jpgs, (i have about 7 gigs worth and would like to fit them on one dvd) Will the quality be decreased? The format I am going to use is probably .rar but I am open to other suggestions for file types. I would appreciate any help... Thanks.
03/11/2004 01:50:03 PM · #2
The short answer is no. Compression algorithms like winzip, gzip, bzip, etc. are all "lossless" compression - they compress the data by finding a smaller way to represent it without actually changing it. For example, if your file had "AAAAA" you could represent that as "Ax5" and save yourself some space without loosing any information. (The algorithms are actually more complex than that - just trying to give you the idea). But, you're probably not going to get much compression using winrar, winzip, gzip, or anything else. Jpegs are already compressed, so other generic compression programs aren't going to be able to squeeze much more out of them.

You could go through and re-compress them as smaller jpegs using a smaller quality setting, but then you would degrade your images. Jpeg (and MP3, among others) are what's called "lossy" compression. They make files smaller by removing information that isn't critical to how it will be percieved (as well as compressing it in general). So, re-jpeg-ing a picture over and over will cause the quality to deteriorate because you are removing information each time (as opposed to just re-representing it in a smaller way).

Just as a general note, a compression algorithm that will reduce the size of any arbitrary file is the perpetual motion machine of computer science. There is no such thing, although every once in a while someone claims to have done it. Think about it, if you had an algorithm that could compress *any* file, you could just keep going over and over again and again on the same file until it got down to just one bit. With most popular compression algorithms (and bear in mind that jpeg, MP3, etc. are compression algorithms), once you've compressed it that's it. You may be able to squeeze a few more percent out by trying to recompress with another algorithm (i.e. trying to gzip your jpeg collection) but don't count on getting substantial results from doing this.
03/11/2004 04:01:24 PM · #3
do you think I can get 6.7 gigs down to 4.7?
03/11/2004 04:11:10 PM · #4
Originally posted by hsteg:

do you think I can get 6.7 gigs down to 4.7?


Doubt it. Try it out on a smaller batch of course, and look at the before and after sizes to get an idea of the compression. But jpegs are very efficient. If I run WinZip on a 3,529 KB jpeg straight out of my Canon D60 (Large Fine quality) it compresses to 3,521 KB, saving only 8 KB. That is a compression ratio of %0.23, or essentially nothing.

Winzip is still useful for encapsulating a bunch of jpegs in one container, though.

Another thought - I sort my images by date instead of category, so that I can archive and not back up the same data over and over. I back up to CD, so I need to keep the window down to something manageable like 700MB at a time.

Message edited by author 2004-03-11 16:13:24.
03/12/2004 12:47:31 PM · #5
If you got more than a few percent smaller, i would be impressed. The way JPEGs work is that they do the lossy compresssion and then they apply a lossless compression to that data before it is stored in the file. applying a second lossles compression doesn't buy you much of any thing.
Pages:  
Current Server Time: 08/31/2025 06:24:12 PM

Please log in or register to post to the forums.


Home - Challenges - Community - League - Photos - Cameras - Lenses - Learn - Help - Terms of Use - Privacy - Top ^
DPChallenge, and website content and design, Copyright © 2001-2025 Challenging Technologies, LLC.
All digital photo copyrights belong to the photographers and may not be used without permission.
Current Server Time: 08/31/2025 06:24:12 PM EDT.