Photo AI

Last Updated Sep 26, 2025

Compression Simplified Revision Notes

Revision notes with simplified explanations to understand Compression quickly and effectively.

user avatar
user avatar
user avatar
user avatar
user avatar

379+ students studying

Compression

The Need for Compression

  • Compression is used to reduce the size of files, making them easier to store and transfer.
  • Large files, such as images, videos, and software, can take up significant storage and require a long time to upload/download.
  • Compression is necessary to improve transfer speed, save storage space, and make file sharing more efficient.

Types of Compression

Lossy Compression

  • Lossy compression permanently removes some data from the file to reduce its size.
  • It is commonly used for media files like images, audio, and video (e.g., JPEG, MP3, MP4).

Advantages:

  • Significantly reduces file size, making it ideal for online streaming and storage. Disadvantages:

  • Some data and quality are lost, meaning the original cannot be perfectly restored.

  • Quality reduction may be noticeable, such as in blurry images or reduced audio clarity.


Effect on file: The file becomes much smaller, but the quality decreases depending on the compression level.

Lossless Compression

  • Lossless compression reduces file size without losing any data.
  • Used for files where it is essential to maintain original quality, such as text files, ZIP files, and some image formats (e.g., PNG).

Advantages:

  • No loss of data, so the file can be restored to its original state.

  • Ideal for compressing important documents and high-quality images. Disadvantages:

  • Less reduction in file size compared to lossy compression.


Effect on file: The file size is reduced, but quality is preserved.

Common Scenarios for Compression

  • Media files: Images, videos, and music are compressed to reduce file size and speed up sharing over the internet.
  • Documents: Text and data files (e.g., ZIP archives) are compressed using lossless compression to save space without losing information.
  • Websites: Images and files on websites are often compressed to help them load faster, improving the user's experience.

Bitmap Images and File Size

  • Bitmap images are made up of tiny squares called pixels. Each pixel stores a specific colour using a binary code.
  • The colour depth of an image refers to how many bits are used to store each pixel's colour. More bits = more possible colours:
    • 1 bit can store 2 colours.
    • 2 bits can store 4 colours.
    • 3 bits can store 8 colours.
    • 4 bits can store 16 colours.
  • Resolution refers to the number of pixels in an image. Higher resolution = more detail but a larger file size.

Image Terminology

  • Pixel: The smallest unit of an image, representing one colour. Each pixel is stored as a binary value.
  • Colour Depth: The number of bits used to represent the colour of a pixel. More bits allow more colours but increase file size (e.g., 4 bits = 16 colours, 8 bits = 256 colours).
  • Resolution: The density of pixels in an image, usually measured in dots per inch (DPI). Higher DPI = more pixels, higher quality, and larger file size.
  • Metadata: Extra information stored with an image, such as its resolution, colour depth, file format, and camera settings (e.g., exposure, ISO, aperture).

Effect of Colour Depth and Resolution on File Size

  • Larger colour depth and higher resolution result in better image quality, but also larger file sizes.
  • Smaller colour depth and lower resolution create smaller file sizes, but the image quality decreases.

Calculating Image File Size

  • File size formula: Multiply the image's resolution by its colour depth (in bits).
  • To convert bits to bytes, divide by 8. For example, a 100x100 pixel image with 8-bit colour depth would have a size of:
    • Size = 100 x 100 x 8 bits = 80,000 bits
    • Divide by 8 to get 10,000 bytes (or 10 KB).
infoNote

Key Points to Remember

  • Compression reduces file size to save storage and improve transfer speeds.
  • Lossy compression removes some data permanently, reducing quality but saving significant space (e.g., JPEG, MP3).
  • Lossless compression reduces size without losing data, preserving quality (e.g., ZIP, PNG).
  • Bitmap images use pixels, and their file size depends on colour depth (bits per pixel) and resolution (pixel density).
  • Higher colour depth and resolution improve quality but increase file size.
Books

Only available for registered users.

Sign up now to view the full note, or log in if you already have an account!

500K+ Students Use These Powerful Tools to Master Compression

Enhance your understanding with flashcards, quizzes, and exams—designed to help you grasp key concepts, reinforce learning, and master any topic with confidence!

110 flashcards

Flashcards on Compression

Revise key concepts with interactive flashcards.

Try Computer Science Flashcards

11 quizzes

Quizzes on Compression

Test your knowledge with fun and engaging quizzes.

Try Computer Science Quizzes

15 questions

Exam questions on Compression

Boost your confidence with real exam questions.

Try Computer Science Questions

5 exams created

Exam Builder on Compression

Create custom exams across topics for better practice!

Try Computer Science exam builder

13 papers

Past Papers on Compression

Practice past papers to reinforce exam experience.

Try Computer Science Past Papers

Other Revision Notes related to Compression you should explore

Discover More Revision Notes Related to Compression to Deepen Your Understanding and Improve Your Mastery

96%

114 rated

Data Storage & Compression

Units of Data Storage

user avatar
user avatar
user avatar
user avatar
user avatar

401+ studying

193KViews

96%

114 rated

Data Storage & Compression

Converting Between Denary & Binary

user avatar
user avatar
user avatar
user avatar
user avatar

429+ studying

180KViews

96%

114 rated

Data Storage & Compression

Binary Addition

user avatar
user avatar
user avatar
user avatar
user avatar

271+ studying

191KViews

96%

114 rated

Data Storage & Compression

Converting Between Denary & Hexadecimal

user avatar
user avatar
user avatar
user avatar
user avatar

232+ studying

194KViews
Load more notes

Join 500,000+ GCSE students using SimpleStudy...

Join Thousands of GCSE Students Using SimpleStudy to Learn Smarter, Stay Organized, and Boost Their Grades with Confidence!

97% of Students

Report Improved Results

98% of Students

Recommend to friends

500,000+

Students Supported

50 Million+

Questions answered