Author Topic: File compression - Doubt and question  (Read 1162 times)

0 Members and 1 Guest are viewing this topic.

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
File compression - Doubt and question
I was taught that archiving may bring about a certain degree of loss of data, so I've mostly used Low or Medium compression in WinZip/WinRAR, out of fear of losing data. However, the Jeff Vader in the Campaign pre-release checklist recommended that 7z Ultra compression must be used.

My question: Was my teacher incorrect about lossy compressions? What are people's experience with compressing files?
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: File compression - Doubt and question
Oh god. The wrongness can not be put into words.

The entire point of compression schemes like zip, 7z and rar is that they are lossless, and guaranteed so. If they weren't, they couldn't be used for data compression at all.

Now, lossy compression schemes (like mp3, jpg and basically every movie codec ever) always introduce a compromise between quality and size. With media like those, compromises can be accepted, but try using a lossy compression on a text file (for example) would guarantee a loss of meaning.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Iss Mneur

  • 210
  • TODO:
Re: File compression - Doubt and question
I was taught that archiving may bring about a certain degree of loss of data, so I've mostly used Low or Medium compression in WinZip/WinRAR, out of fear of losing data. However, the Jeff Vader in the Campaign pre-release checklist recommended that 7z Ultra compression must be used.

My question: Was my teacher incorrect about lossy compressions? What are people's experience with compressing files?
No, you teacher was 100% correct about lossy compression, the higher the compression the more loss (in general).

The problem is Zip/RAR/7z/etc are lossless compression systems. So the only thing that you lose by cranking them up to max is the increased time to compress/decompress and the increased memory usage during the compression/decompression operation.  Obviously by using maximum compression you actually get a smaller file size which is why Jeff Vader (and actually anyone else that is wanting to offer data on the internet) will use the maximum compression practical.

For the record, lossy compression is normally used to compress media (pictures (dds, jpeg), music (mp3, ogg vorbis), movies (mpeg, mp4, ogg theora)) and not data (text documents, web pages, .tbls, and .tbms, etc.).  That being said, there are lossless compression availability for media as well (pictures[tiff, png, gif (as long as you don't mind only 256 colours), jpeg], music [FLAC], and movies [dv (very basic)]).

EDIT: so someone did post while I was writing, the forum told me that someone did but would not show the post
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: File compression - Doubt and question
i believe the different compression within winzip, winrar, 7z are so the person compressing the files can make a decision on the compromise between the desired end file size, compression time and decompression time especially with larger amounts of data where these can be notable
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

  

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Re: File compression - Doubt and question
Okay. Thanks for the replies.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.