File compression
引入本课内容
| English | 释义 | 拼音 |
|---|---|---|
| compression/kəmˈpreʃn/ | 压缩 | yā suō |
| attachment limit | 附件大小限制 | fù jiàn dà xiǎo xiàn zhì |
| bandwidth/ˈbændwɪdθ/ | 带宽 | dài kuān |
| resolution/ˌrezəˈluːʃn/ | 分辨率 | fēn biàn lǜ |
Too big to send
- Big files fill drives and fail to send. Compression 压缩 makes them smaller.
Why reduce size?
| storage | transmission |
|---|---|
| less space used | faster upload and download |
| more files fit | attachment limits 附件大小限制 met |
| smaller backups | less data and bandwidth 带宽 |
Why reduce file sizes for transmission?
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Compression never improves quality.
Archives
- .zip and .rar compress one or many files into a single archive; files are usually extracted before use.
- An archive also keeps files together, like all of a website's pages.
Match each file to the compression usually used.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Programs and data must be restored exactly.
Lossy compression lets you restore the original exactly.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Some data is removed permanently.
What does a .zip archive do?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
It also keeps files together.
Lossless and lossy
| lossless | lossy |
|---|---|
| original restored exactly | data removed permanently |
| text, programs, .zip, .png | photos, music, video: .jpg, .mp3 |
| smaller reduction | often greater reduction |
40 photos, 120 MB, with a 25 MB email limit: zip them and lower the resolution 分辨率 to reach 18 MB.
A student must email 40 photos totalling 120 MB, but the limit is 25 MB. Describe two ways to reduce the size.
Combine compression with smaller images.
Never use lossy compression for programs or data. Losing even one byte breaks them.
Smaller files save storage and send faster. Lossless keeps every bit (text, programs); lossy removes data for bigger savings (photos, sound, video).
出了什么问题?只有网站团队能看到这些信息。