File Compression

File compression is basically reducing the size of a file to save space and to speed up the loading time. To compress a file you will require a file compression software such as Win-Zip, Win-Rar or 7-Zip. The program will create a formula to determine how to compress and decompress the data. Images can be large in size, therefore many image formats automatically compress the image as much as possible.

File compression can be done on folders and files and it is important to compress large files if you intend to send them over the internet as file compression will save space and upload/downloading time.

They compress the image using either lossy compression or by using lossless compression. Data compression is very beneficial for many reasons. It saves disk space and it writes and reads data at a higher speed. Data compression also has a faster file transfer rate due to the fact that the file will be smaller in size. Another advantage would be that data compression has a variable dynamic range and the byte order is completely in-dependant.

 Compression does however have its drawbacks. With data compression their comes added complication and loss of data may occur. The computer will have to decompress the file before it can open it. This will mean that it will take longer to open the file as it has more processes to perform.

Their are two types of file compression. Lossy compression and lossless compression.




Lossy Compression

Lossy compression is a type of file compression technique. JPEG files use the lossy compression technique. Lossy compression gets rid of data that is not required to make the file smaller in size. The file will still be readable and will look nearly the same if done a few times, however if this is done frequently the quality will significantly be reduced because the file is loosing more and more data. Lossy compression is popular for use among compressing files such as audio files, video files and image files. An example of lossy compression format would be a .JPEG file or a  .WEBP file.



Below is an example of lossy compression. I am converting a .TIFF image into a JPEG image. JPEG images use lossy compression to reduce the files overall size.



Lossless Compression

Lossless data compression is the second type of data compression. This type of compression allows all of the file to be reconstructed without loosing any data at all when it is reconstructed by using formulas and algorithms to compress and decompress files.

 Lossless compression will loos no quality at all. This a major advantage to this compression type. It is usually larger in file size in comparison to lossy compression however the image will not deteriorate in quality. Software such as Win-Zip and Win-Rar use this type of file compression. The disadvantage to lossless compression is that the size will not be greatly reduced in comparison to lossy compression.

An example of lossless compression would be a .PNG file.



How to compress a file/files

Compressing files is a very easy process. To compress a file you can use many different file compression softwares. The most popular ones are Winrar and Winzip. For this tutoral I ill be using Winzip.

Winzip and winrar both use lossless file compression.

It is very easy to compress a file or files using winzip. To do so firstly select the files that you want to compress. Now right click on one of the files and select send to >> Compressed folder.



You have successfully compressed a file.



Below is an example of lossless compression. I am using 7-Zip to compress the image into a zip file to reduce the file size significantly.




1 comment:

  1. This article will guide you through the basics of learning how to resize pictures easily. Resizing Pictures involves 3 basic things, the right height, width and quality of the image, setting these three things correctly will resize the picture properly every time.onlineconvertfree.com

    ReplyDelete