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.
Software

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 Compression?

By James Doehring
Updated: May 16, 2024

Image compression seeks to reduce digital image file sizes while maintaining image quality. This is achieved by applying the methods of data compression to the files. An image's file size can be reduced with or without a loss in quality of the image; these are called lossy compression and lossless compression, respectively. Image compression is useful when a computer user wishes to minimize required storage space or maximize data transfer rates of an image.

The first type of image compression is lossy compression. A user seeking to dramatically reduce an image file size may opt for a lossy compression method if some reduction in image quality is worth a significant reduction in file size. Pictures and videos from digital cameras are examples of digital files that are commonly compressed using lossy methods. A user will not be able to restore the original image because there will be compression artifacts, or irreversible alterations, in the image.

A simple method of lossy image compression is to reduce the color space to a smaller set of colors. Color spaces can range from only eight distinct colors to millions of colors. The larger the color space, the more data is required to specify a particular color. Converting an image to grayscale, or to shades of gray, is a similar lossy image compression technique.

Lossless image compression is any method of reducing an image's file size without sacrificing information about the image — an identical image to the original can always be retrieved. Lossless forms of data compression are necessary when reductions in quality are deemed unacceptable. Medical imaging, technical drawings, and astronomical observations typically use lossless compression techniques.

One lossless image compression method is called run-length encoding. Often, simple images have many repetitive pixels, or small points of color. For example, in an image with a black background, the entire top row of pixels may be black. The run-length encoding method stores this string of black pixels in two values: one for the color and one for the number of pixels in the string. This method can store the same amount of information with much less data.

A Joint Photographic Experts Group (JPEG) is an example of an image compression method with a variable level of compression. JPEG compression typically leaves behind some amount of compression artifacts, but it can reduce file sizes by more than 10 times with only minor losses in quality. Some JPEGs will load an image with progressively greater detail, allowing the user to see a preview of the image as it loads. These aspects of the JPEG image format have made it very popular on the World Wide Web.

EasyTechJunkie 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.
Discussion Comments
Share
EasyTechJunkie, in your inbox

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

EasyTechJunkie, in your inbox

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