File Compression (CIE IGCSE ICT)

Revision Note

Craig Godbold

Expertise

Computer Science

Why Reduce File Size?

  • The size of a file determines:
    • How much space it will require for storage 
    • How long it will take to transmit from one device to another
  • Often file sizes need to be reduced and will use a form of compression
  • The two types of compression are:
    • Lossy compression - Unnecessary data is removed and can significantly reduce file sizes. This is most often used for audio, video and image
    • Lossless - Allows the original data to be perfectly reconstructed from the compressed version without any loss of information or quality. This is most often used for text and document and software compression 
  • E.g. if 10 images were to be displayed on a website and their original size was 18MB each, with an internet connection of 32 megabits per second the webpage would take around 45 seconds to load and require 180 Mb of storage space online to host the images
  • Using lossy compression it is possible to compress the files down to around 10% of their original size meaning that the same internet connection would require just 4 seconds to load the images and the storage requirement for the files would be 18MB

unnamed-27

How are Files Compressed?

There are many different technical ways that file sizes can be reduced however some simple methods and techniques for multimedia files are below:

  • Images can be compressed by the following:
    • Reducing the number of colours in the image (known as the bit depth)
    • Reducing the resolution of the image (the total amount of pixels that make up the image)
  • Videos can be compressed by the following:
    • Reducing the video resolution
    • Reducing the number of video frames per second
  • Sound can be compressed by the following:
    • Removing frequencies that are outside of the human hearing range

Worked example

An author is writing a new textbook about ICT. He has used a large number of images in the document and wishes to send the document as an email attachment to his publisher, but the file is currently too large.

Describe how he could reduce the size of the document without reducing the number of images.                                                                                                                       [4]

 The author could reduce the size of the document by either reducing the image resolution [1]

changing the file formats of each of the individual images [1]

saving as a PDF [1]

or compressing /zip the folder with all the photos to a smaller size [1]

How to Compress a File

  • An uncompressed document containing both text and images 1-zrq7i4c0qnomynvnndlmrqoay0cbxkazfqpjuko
  • A document can be compressed by converting it to a PDF file

unnamed-28

  • By converting the document to a pdf, the file size reduction is more than half

15gmiobjlvp0owtrzqj3qzxmqn8ibr9paq5ynipk-

Exam Tip

  • Remember that although you are compressing the file to a PDF file this means that the file cannot be edited in the same way and so it is important to keep a copy of the original uncompressed file in case any changes are required

Compressing Multiple Images Together

1q4bdsxahts2ewe-ekciy2d-87yhfhe-90flxuizz

  • Hold Ctrl and select all the images you would like to compress, right click and choose ‘Compress to Zip file’

1yh0i3hjnzhsogej3gv99jfoyu6quhmilapnlz4-t

  • Using the Zip file compression technique has reduced the file size considerably
    • Total for all files before compression: 8477KB
    • Total for all files after compression: 727KB

19buhnia-uxkljgqdemuxfrx3e1foguhgthmi3fls

The same can be done using WinRar

  • Hold Ctrl and select all the images you would like to compress, right click and choose ‘WinRAR followed by Add to Archive’

1rnuauevvlpg-gff31nygfrjhmru8gfhtub97unxn

  • Give the archive a title and click OK

1s6df6ddgdc0x8vdgb7hvfu4are6ubbp6gqchsih5

  • The compressed file is now in the directory

1kqf2mpbn3bx2uldilpkhjzgjnu4auhkbpfdpoi5r

Note* Sometimes when using WinZip or WinRar the file sizes will not compress further as some file types are already compressed, such as JPEG images. Another reason may be that different compression algorithms are used by different compression software, and their effectiveness can vary depending on the file types being compressed

You've read 0 of your 0 free revision notes

Get unlimited access

to absolutely everything:

  • Downloadable PDFs
  • Unlimited Revision Notes
  • Topic Questions
  • Past Papers
  • Model Answers
  • Videos (Maths and Science)

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Craig Godbold

Author: Craig Godbold

Craig is an experienced educator with 14 years of teaching experience in the UK, USA, and China, He has held a variety of roles in education, including Head of Faculty, IB teacher and now currently teaches A level and GCSE courses. Craig supported his students to achieve the best results the school had ever had in IB Computer Science.