Difference Between Similar Terms and Objects

The Difference between Lossy and Lossless Compression

The Difference between Lossy and Lossless Compression

“Lossy” and “Lossless” are terms used to describe two different kinds of compression. This article will explore the differences, pros and cons of each compression type.

Lossy Compression

Lossy compression lowers a file’s quality. When compressing, an algorithm scans for and tosses out files it deems unnecessary.

Lossy compression is used when a file can afford to lose some data. It is useful because it saves space. As long as space is not a problem, it should not be necessary to use lossy compression.

Lossless Compression

Lossless compression, as you may have guessed by now, is used when quality is of utmost importance. The higher quality comes at a cost of larger file size.

Photographers enjoy using lossless compression, as many use RAW images. This is a form of lossless compression for images. These gigantic files are perfect for editing and fine-tuning in Photoshop.

Once the photoshop edit is complete, the image is converted to JPEG (or similar) at high quality. This is then presented to the client.

Which is best?

There is no “best”. It depends on what you plan to do with your files and how much storage space you have available.

Unless you value top quality – then lossless is best.

I had a photographer friend with a serious storage problem, because of how much data RAW images take up. They took hundreds, sometimes thousands of photos every day. Each of these was around 25MB and more.

You do the math.

File Types

A few lossy file types used for images are JPEG’s and GIF’s. Both of these lose some quality at conversion.

Files types RAW, BMP and PNG are all forms of lossless compression. They keep their quality at the expense of huge storage space.

In audio lossy files are MP3, MP4 and OGG. Lossless files are WAV, FLAC and ALAC (used by itunes).

In video there are few lossless file types. The sheer (and shocking) size of lossless video file types make them almost inaccessible to mere mortals. Lossless video files, I’d imagine, are used by major movie studios.

I guess there could be YouTubers that use lossless video. I don’t know. (If you’re a YouTuber and reading this, leave your thoughts in the comments!)

Actual Conversion

If you don’t mind losing quality, it’s fine to convert from lossless to lossy. It is a viable option when running out of space or when the need to have the lossless files has passed.

Converting from lossy to lossless is not advised. The quality won’t improve, since the unnecessary files deleted will never return. But the file size will grow significantly.

If the file is then returned to lossy compression, further quality loss will occur.

Converting from one lossy file type to another is also not recommended, as more quality will be lost with each conversion.

More tips for converting files

Whenever you have a crucial document (like financial data), it is recommended to keep a lossless file format. Any files where a great loss of quality would incur costs or damages, the files should be kept in lossless format.

Less crucial documents can safely be converted to lossy file types.

Innovations in video

Videos commonly come in the MWV or MKV file types. There’s a new file type, however, called H.264.

I haven’t seen this file type myself yet, but, apparently, it’s better than MWV. It has a better algorithm which decided what to chuck, and ends up with smaller, higher quality files.

According to pavtube, the MKV file format is lossless. Personally I doubt this, as I recently had MKV video files. The video itself was great, but the audio was pretty poor.

Have you worked with MKV or H.264 file formats?

Have you worked with other lossless video?

Let us know in the comments!

Summary

Lossy Lossless
Loses quality to save space Keeps quality at the expense of space
Image files include JPEG and GIF Image files include RAW and PNG
Audio files include MP3 and OGG Audio files include WAV and FLAC
Recommended for less crucial files Recommended for critical files

Sharing is caring!


Search DifferenceBetween.net :




Email This Post Email This Post : If you like this article or our site. Please spread the word. Share it with your friends/family.


Leave a Response

Please note: comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

References :


[0]http://whatis.techtarget.com/definition/lossless-and-lossy-compression

[1]http://blog.online-convert.com/the-differences-between-lossless-and-lossy-compression/

[2]https://www.howtogeek.com/142174/what-lossless-file-formats-are-why-you-shouldnt-convert-lossy-to-lossless/

[3]https://cs.stanford.edu/people/eroberts/courses/soco/projects/data-compression/lossless/index.htm

[4]https://commons.wikimedia.org/wiki/File:Graphics_file_formats_(EN_version).svg

Articles on DifferenceBetween.net are general information, and are not intended to substitute for professional advice. The information is "AS IS", "WITH ALL FAULTS". User assumes all risk of use, damage, or injury. You agree that we have no liability for any damages.


See more about : ,
Protected by Copyscape Plagiarism Finder