问HN:人们还关心图像优化吗?
也许我有些显老了,但我记得以前听说过,图像应该根据其类型保存为不同的格式,以节省文件大小。因此,照片应该保存为JPEG格式,插图和图标则使用PNG格式,矢量图像则使用SVG格式,等等。
但现在感觉似乎没有人再这么做了。我看到的每个网站似乎都将所有图像都存储为WebP格式,许多网站甚至直接上传多个兆字节的PNG格式照片。似乎也没有太多关注上传与最大设备所需尺寸相匹配的图像,甚至在像Discord这样的网站上,微小的GIF往往也是几十兆字节的全尺寸图像。
那么,互联网是不是已经决定带宽和图像大小不再是问题了?大家是不是都接受了每张图像都上传到同样的三个服务,并且每个人现在都有高速互联网连接?
在经历了90年代到2010年代关于性能的讨论后,这一切感觉真的很奇怪。
查看原文
Maybe I'm showing my age a bit, but I recall hearing that images should be saved in formats based on their type to save on file size. So, photographs would be JPEGs, illustrations and icons would be PNGs, vector images would be SVGs, etc.<p>But now it feels like no-one does this anymore. Every site I've seen just seems to store all images as webp now, with many outright uploading multiple megabyte photo files in PNG format. There also doesn't seem to be a lot of care put into uploading images that match the dimensions needed for the largest device either, with even tiny GIFs on sites like Discord often being full-sized images dozens of megabytes in size.<p>So, did the internet just decide that bandwidth and image sizes aren't a concern anymore? Did everyone just accept that every image is posted to one of the same 3 services and that everyone has a high-speed internet connection now?<p>It just feels weird after all the talk of performance in the 90s-2010s.