it's time to stop png

Time to Abandon PNG

By Thomas King
AD

In the ever-evolving landscape of web design and development, there's been a persistent image format that's dominated for decades: Portable Network Graphics, or PNG. But is it still the best choice in 2022?

With advancements in technology and the continuous evolution of web standards, it might be time to reevaluate our use of PNG. Other formats, like WebP and AVIF, have emerged as serious contenders, offering better compression rates and support for modern features. So, let's dive in and explore why it might be time to stop using PNG.

The Rise of PNG and Its Advantages

When PNG was introduced in 1995, it was a game-changer. It offered lossless compression, support for transparency, and a wider color gamut, making it ideal for images that required these features. It's no wonder that PNG became the go-to format for graphics, icons, and even complex illustrations on the web.

AD
HD White Hand Stop Icon On Red Road Stop Sign Clipart PNG
HD White Hand Stop Icon On Red Road Stop Sign Clipart PNG
a red stop sign with the word stop written below it in white on a black background
a red stop sign with the word stop written below it in white on a black background
a stop sign with the word stop written on it and two hands in the air
a stop sign with the word stop written on it and two hands in the air

But this was the 90s, and a lot has changed since then. While PNG's advantages are undeniable, they're not enough to make it the best choice today.

Lossless Compression Isn't Always Best

Lossless compression means that every detail of the original image is preserved. In theory, this should result in higher quality images. However, when it comes to digital icons and graphics, this often isn't necessary, and the files are larger than they need to be.

Stop Sign PNG
Stop Sign PNG
Stop PNG Transparent Images
Stop PNG Transparent Images
It's Time To Stop. Sticker
It's Time To Stop. Sticker

Consider this: a complex PNG icon might have a file size of 100KB. Converting it to a lossy format like WebP can reduce this size to just 20-30KB, without any noticeable loss in quality for the average user.

Transparency Isn't Universally Needed

One of PNG's most compelling features is its support for transparency. However, not all images need or benefit from transparency, especially on today's web where CSS can handle layering and styling with ease. Why use PNG for a simple button icon when a solid color SVG could do the job?

AD

In many cases, we're using PNG for transparency when we don't need to, leading to larger file sizes and slower load times.

Traffic signs png images | PNGEgg
Traffic signs png images | PNGEgg
a red stop sign with white letters on it's sides and the word stop below
a red stop sign with white letters on it's sides and the word stop below
वेळ
वेळ
a black and white stop it sign with the words stop it in large, bold letters
a black and white stop it sign with the words stop it in large, bold letters
a red stop sign on a metal pole with no background, hd png clipart
a red stop sign on a metal pole with no background, hd png clipart
a pink stop sign that says stop stressing over things you can't control
a pink stop sign that says stop stressing over things you can't control

The Emergence of Next-Gen Formats

In recent years, new image formats have been developed to meet the demands of modern web design. WebP and AVIF are at the forefront of this movement, offering better compression rates and support for modern features.

WebP, for instance, uses predictive coding to achieve impressive compression rates. It's designed to be faster and lighter, without sacrificing quality. AVIF takes this even further, offering much higher compression rates and support for alpha channels and HDR.

AD

WebP: Faster, Lighter, and More Efficient

WebP, developed by Google, offers up to 26% less data compared to PNG for a given level of quality. This results in faster loading times and improved performance, which is crucial for today's mobile-first web. Plus, it's supported by all modern browsers.

HD Outline Hand Stop Silhouette On Red Stop Road Sign PNG
HD Outline Hand Stop Silhouette On Red Stop Road Sign PNG
the word stop painted in red and white on a black background
the word stop painted in red and white on a black background
Red Stop Button On White Background by In8Finity | Creative Market
Red Stop Button On White Background by In8Finity | Creative Market
a red stop sign with eyes and hands on it's legs, standing in front of a white background
a red stop sign with eyes and hands on it's legs, standing in front of a white background
a stop sign with the words don't stop believing written on it in black ink
a stop sign with the words don't stop believing written on it in black ink
242,000+ Stop Sign Stock Photos, Pictures & Royalty-Free Images
242,000+ Stop Sign Stock Photos, Pictures & Royalty-Free Images
a stop sign with the words don't stop me now written on it
a stop sign with the words don't stop me now written on it
3d Illustration Of Stopwatch, Stopwatch, Timer, Clock PNG Transparent Image and Clipart for Free Download
3d Illustration Of Stopwatch, Stopwatch, Timer, Clock PNG Transparent Image and Clipart for Free Download
Stop it stock photo. Image of cute, blonde, beauty, looking - 12439788
Stop it stock photo. Image of cute, blonde, beauty, looking - 12439788
Stop Sign - Usa Sticker
Stop Sign - Usa Sticker
Won’t stop, can’t stop.
Won’t stop, can’t stop.
Time Out
Time Out
8 Grunge Word Stop (PNG Transparent)
8 Grunge Word Stop (PNG Transparent)

WebP also supports animation, making it a viable alternative to GIF for simple animations. And it supports transparency and lossless compression, so you don't have to compromise on features.

AVIF: The Format of the Future

AVIF is an open-source format developed by the Alliance for Open Media. It offers up to 40% less data compared to WebP, and supports a wide range of features, including alpha channels, HDR, and 360-degree videos.

AD

While support for AVIF is not yet as widespread as WebP, it's rapidly gaining traction and is already supported by all major browsers. As support continues to grow, AVIF could become the new standard for web images.

In conclusion, while PNG has served us well over the years, it's time to consider the benefits of next-gen formats like WebP and AVIF. They offer better compression rates, improved performance, and support for modern features. So, let's embrace the future and start using these new formats where we can.

AD