Computers cannot store letters directly; they assign a unique binary number to every character. This collection of characters is called a Character Set.
A digital image is made of tiny dots called Pixels (Picture Elements).
File Size = Resolution (W x H) x Color Depth
To store sound, an ADC (Analogue to Digital Converter) takes "snapshots" of the sound wave at set intervals. This is Sampling.
File Size = Sample Rate x Resolution x Duration
Compression reduces file size for faster transmission and less storage space.
| Lossy | Lossless |
|---|---|
| Removes non-essential data permanently. | Reduces size without losing any original data. |
| Used for: JPG, MP3, MP4. | Used for: PNG, ZIP, Executable files. |