0% found this document useful (0 votes)
2 views

Data Compression

Uploaded by

afsanajahan2342
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Data Compression

Uploaded by

afsanajahan2342
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Data Compression

AHIS(Class 9)
Data compression

 Lossy compression and lossless compression are methods of reducing file size, but
they differ in how they do it and the resulting quality of the file:

Lossy compression
 Reduces file size by removing less critical data, which can lower image quality. This
method is often used for online streaming and digital photography for the web. Lossy
compression can improve a website's performance and loading time. However, the
changes made to the image are not reversible, so the file cannot be restored to its
original form.
Data Compression

Lossless compression
 Reduces file size without losing quality by preserving all
original data. This method is often used for archival
storage and high-quality audio production. Lossless
compression is reversible, so the image can be restored
for editing or printing. However, lossless compression
can result in larger file sizes than lossy compression.
 The best method to use depends on your
circumstances. For example, if you need to save storage
space or improve the user experience on a website,
lossy compression might be the best option. If you need
to maintain the highest possible quality, lossless
compression might be the better choice.
What Is Lossy Compression Used
For?

 Lossy data compression is ideal for reducing file size and serving highly optimized
images to visitors.
What Is Lossless Compression Used
For?

 Lossless data compression would be preferred over a lossy one if you need a format
that compresses images, but no details are lost in compression.
Example
Pros and cons
Facts

 Advantages and Disadvantages of Lossless Compression


 The main benefits of lossless compression are that you don’t lower the quality of a
picture and will not make it look blurry. Also, by using this compression level, you can
easily restore an image to its original format without losing any data.
 However – and that’s the main disadvantage of lossless compression – the file size will
remain large and impact the speed of your website.
 Advantages and Disadvantages of Lossy Compression
 The main advantage of lossy compression is that it does a better job of shrinking the
file size, resulting in a faster loading page. On an SEO level, this will make your site
rank better because search engines prefer sites with quicker load times.
Which Formats Use Lossy vs
Lossless Compression

 Is JPEG Lossy or Lossless?


The JPEG format is one of the best examples of lossy compression. It’s a powerful format
to reduce the file size of an image before serving it on the web.
 Is PDF Lossy or Lossless?
The PDF format is generally lossless as it tends to create replicas of the files you want to
extract to PDF.
Q/A

 Is GIF Lossless or Lossy?


The Graphics Interchange File (GIF) format is generally compressed using the lossless
compression technique.
 Is PNG Lossless or Lossy?
PNG files benefit from lossless compression, meaning they’ll maintain their quality no
matter how often you modify them.
When to use?

You might also like