How does file compression/ZIP files work?

260 viewsEngineeringOther

I understand it’s to save file space, but like…how?

Follow-up: If you have to compress a photo to save on file size (when emailing, for example) couldn’t it just send essentially a text file on how to uncompress it back to its original size and quality? (ex. “Set the resolution to XxY and add X color at Y pixels”)

Thank you!

In: Engineering

9 Answers

Anonymous 0 Comments

It finds repeating patterns in the data and avoids storing them more than once.

Which is why data lacking any patterns (such as random data or already compressed data) can not be compressed any further.

You are viewing 1 out of 9 answers, click here to view all answers.