We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Technology

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What Is Image Processing Compression?

By Eugene P.
Updated: May 17, 2024
Views: 5,501
References
Share

Image processing compression involves reducing the amount of space an image occupies when written to a physical file or when being held in memory. The general concept behind most compression algorithms is that images have repeating patterns or similar parts that can be specially encoded and then symbolically referenced, avoiding the need to explicitly rewrite an already encoded pattern. There are two broad categories in image processing compression, namely lossless and lossy compression types. In lossless compression, the image and all its pixels and color information are stored in a way so it can be perfectly reconstructed. Lossy compression involves either manipulating some parts of the image to make it easier to compress or using algorithms that can occasionally cause some pixel information not to be accurately encoded.

The difference in image processing compression rates between lossless and lossy algorithms can be dramatic. Lossless compression usually achieves a much higher compression percentage, at the cost of the image being slightly degraded each time it is re-compressed. The properties of an actual image also can affect the amount of compression that can occur. An image that has many disparate, differently colored pixels in random alignments will not benefit much from being compressed and might actually cause an increase in the file size with certain file formats. Images that have large areas of flat color, or a limited number of colors, can benefit the most from compression.

A common form of lossless image processing compression is known as run-length encoding. This method uses the idea that pixels of the same color will be repeated in horizontal lines within an image. Instead of storing each consecutive pixel separately, run-length encoding counts the number of pixels that are the same and instead stores only the number of pixels and color of those pixels. Depending on the image, this can be very efficient. For images that have many sets of identical colors that run only for two or three pixels, however, the algorithm can actually increase the size of the image file because of the encoding overhead, which is roughly the size of three pixels.

One of the most used image processing compression algorithms is a lossy method known as transform encoding. Instead of dealing with single pixels, this method takes blocks of pixels, averages them and then reduces the overall number of colors in an image to just the ones that either have the highest contrast or the highest frequency. The result is a file that can be significantly smaller than other formats, but that also might suffer severe degradation if the image blocks that are processed are too large.

Share
WiseGeek is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Link to Sources

Editors' Picks

Discussion Comments
Share
https://www.wisegeek.net/what-is-image-processing-compression.htm
Copy this link
WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.

WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.