TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

7 点作者 raphaelj大约 2 年前
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 条评论

duffyjp大约 2 年前
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 未加载
nicbou大约 2 年前
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.
speedgoose大约 2 年前
It depends. If it’s a technical blog you could, if it’s an online shop, don’t.
mattbgates大约 2 年前
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.
theandrewbailey大约 2 年前
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.
brtkdotse大约 2 年前
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_32大约 2 年前
accepts header can be used to optimize here. If client supports webp or afiv - send those. If they don’t - png&#x2F;jpg
justsomehnguy大约 2 年前
Does dropping PNG&#x2F;JPG provide you some really significant benefits?<p>If no, then why?