日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

A new image format for the Web

發布時間:2025/7/25 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 A new image format for the Web 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

from: https://developers.google.com/speed/webp/

登錄 搜索
  • 產品
  • Make the Web Faster
  • WebP
  • 首頁
  • A new image format for the Web
WebP
  • 首頁
  • 指南
  • 參考網頁
  • 示例
  • 支持
隱藏

A new image format for the Web

WebP is a new image format that provides lossless and lossy compression forimages on the web. WebP lossless images are 26% smaller in size comparedto PNGs. WebP lossy images are 25-34% smaller in size compared to JPEGimages at equivalent SSIM index. WebP supports lossless transparency (alsoknown as alpha channel) with just 22% additional bytes. Transparency isalso supported with lossy compression and typically provides 3x smaller filesizes compared to PNG when lossy compression is acceptable for thered/green/blue color channels.

Webmasters and web developers can use the WebP image format to create smallerand richer images that can help make the web faster.

How WebP Works

Lossy WebP compression uses predictive coding to encode an image, the samemethodology used by the VP8 video codec to compress keyframes in videos.Predictive coding uses the values in neighboring blocks of pixels to predictthe values in a block, and then encodes only the difference (residual) betweenthe actual values and the prediction.

The residuals typically contain many zero values, which can be compressed muchmore effectively. The residuals are then transformed, quantized and entropy-coded as usual. WebP also uses variable block sizes.

Lossless WebP compression uses already seen image fragments in order toexactly reconstruct new pixels. It can also use a local palette if nointeresting match is found. This palette is continuously updated to re-userecent colors. This compression mode is named "VP8L" and shares some commonfeatures with the so-called LZ77 compression algorithm.

A WebP file consists of VP8 or VP8L image data, and a containerbased on RIFF. The standalone libwebp library serves as a referenceimplementation for the WebP specification, and is available fromour git repository and as a tarball.

WebP Support

WebP is natively supported in Google Chrome and the Opera browser, and bymany other tools and software libraries.

Developers have also added support to a variety of image editing tools. Thisrelease also provides the lightweight encoding and decoding librarylibwebp and the command line tools cwebp and dwebp forconverting images to and from the WebP format. The full source code isavailable on the download page.

WebP Converter Download

Convert your favorite collection from PNG and JPEG to WebP by downloading theprecompiled cwebp conversion tool for Linux, Windows or Mac OS X.

Tell us your experience on the project's mailing list.

本頁面中的內容已獲得知識共享署名 3.0 許可,并且代碼示例已獲得 Apache 2.0 許可;另有說明的情況除外。有關詳情,請參閱我們的網站政策。

條款 ? | ? 隱私權 <img height="1" width="1" src="//www.googleadservices.com/pagead/conversion/992540712/?label=qio2CKCPwQMQqPCj2QM&amp;guid=ON&amp;script=0" _xhe_src="//www.googleadservices.com/pagead/conversion/992540712/?label=qio2CKCPwQMQqPCj2QM&amp;guid=ON&amp;script=0"/>

總結

以上是生活随笔為你收集整理的A new image format for the Web的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。