TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Should I use WebP and stop providing PNG and JPEG?

7 pointsby raphaeljover 2 years ago
Hi,<p>Based on [1], it seems like at least 95% of web users support WebP as an image format.<p>Is it time to drop support for legacy image formats (PNG, JPEG), or should I still provide them as alternatives (using &lt;source&gt;)?<p>--<p>[1] https:&#x2F;&#x2F;caniuse.com&#x2F;webp

8 comments

duffyjpover 2 years ago
The thing that holds me back is that WebP isn&#x27;t supported on iOS 12. I know it&#x27;s miniscule but there are still iPad Air 1 and iPhone 6 etc in service. I don&#x27;t want to switch until I no longer need a fallback JPEG.
评论 #34826938 未加载
nicbouover 2 years ago
I provide both. Webp by default, and the original format for others. Like duffyjp, I maintain support for iOS 12. I don&#x27;t find it reasonable for images or text not to load on those devices.
speedgooseover 2 years ago
It depends. If it’s a technical blog you could, if it’s an online shop, don’t.
mattbgatesabout 2 years ago
As much as I love the idea of WebP, it hardly seems like it&#x27;s going to replace jpg, png, or gif in full swing. WebP is great to ensure your image is optimized to the fullest, but I&#x27;m not sure too many people really care about the few extra KB a JPG might have. The only time it may matter is when you have a GIF and WebP can reduce it by several MB.
theandrewbaileyover 2 years ago
Keep them. It might be worthwhile to look into AVIF instead of WebP, as AVIF seems to be winning the current generation image format war.
brtkdotseabout 2 years ago
I’ve noticed that LinkedIn doesn’t support webp as the card image, so I have temporarily reverted to jpgs for those in my podcast site.
red_Seashell_32over 2 years ago
accepts header can be used to optimize here. If client supports webp or afiv - send those. If they don’t - png&#x2F;jpg
justsomehnguyabout 2 years ago
Does dropping PNG&#x2F;JPG provide you some really significant benefits?<p>If no, then why?