# data[].attributes.body
Here you will see some important informations about Data Compression. I hope it will help you. I choose some questions for this subject.

What is compression ratio?

Compression ratio is the percentage a file has reduced itself. Also known as compression power, is a computer science term used to quantify the reduction in data-representation size produced by a data compression algorithm.

What happens if you try to compress the same file more than one time?

In case of lossy compression the file will stop compressing at one point. In case of lossless compression the file will eventually return to its original size. Is there a limit to the compression ratio?

yes there is a limit. We can never reach the limit although we know theoretically its there.

Down here you will see a video from youtube:

# data[].attributes.body
Finally i made a screencastify which show how to use lossy compression. I will show the link because the video cant be show here.

https://www.youtube.com/watch?v=Md24jjXpsek&feature=youtu.be

# data[].attributes.body
is used to reduce the size of one or more files.

a compressed file take less disk space after that an uncompressed version and it can be transferred to other systems more quickly.

is often used to save disk space.

There a two types of compression:File compression, Media compression.

File Compression
-  can be used to compress all types of data into a compressed archive.

- use Lossy Compression.

Media Compression

- is used to save compressed image, audio, and video files.

- use Lossless Compression.

# data[].attributes.body
Here you will find the most important informations about 'Lossless' Compression.

1. reduces a file's size with no loss of quality.

2. method of reducing file sizes can be applied to both image and audio files.

3. rewrites the data of the original file in a more efficient way.

4. the resulting files are typically much larger than image and audio files.

# data[].attributes.body
Here you will find the most important informations about 'Lossy' Compression.

1. results in lost data and quality from the original version.

2. associated with image files (like JPEGs). But can also be used for audio files (like MP3s or AAC files).

3. lossyness of an image file can show up some jagged or pixelated areas.

4. in the case of an audio file, the sound can be a bit watery.

5. the resulting file take more less disk space than the original file.