Data Compression

Data Compression

Data compression is the method which shrinks a file size down into a small file. These files are typically images, audios, and videos.

But why? Compression is used to reduce the resources required on your storage, allowing more files to be in your storage without reaching its limit.

Compression can turn a terabyte into 50 gigabytes, 20x smaller and its not noticable to the human eye!

(insert image here later)

Images

The file size of images can be easily calculated, there is a simple formula to do it.

Width x Height x Bitcolor

This calculates the size of an image file in Bits, /8 to turn it to Bytes.

Width + height refers to the image resolution. Bitcolor refers to RGB, which is 8bits x 3 in modern computers. R=50; G=120; B=84; for example. Capping out at 255 due to it being 8 bits. 255^3 colors are possible on the computer. (16,581,375 colors)

1920 x 1080 x 24 = 49,766,400 bits, /8 = 6,220,800 Bytes, /1024 = 6,075 Kilobytes, /1024 = 5.93 Megabytes.

The colors and resolution can be reduced, however. If compression, it could be below a Megabyte.