A new image format for the Web
来源:互联网 发布:java 字符串转换字节 编辑:程序博客网 时间:2024/05/24 02:28
from: https://developers.google.com/speed/webp/
- 首页
- 指南
- 参考网页
- 示例
- 支持
WebP is a new image format that provides lossless and lossy compression forimages on the web. WebP lossless images are26% smaller in size comparedto PNGs. WebP lossy images are25-34% smaller in size compared to JPEGimages at equivalent SSIM index. WebP supports lossless transparency (alsoknown as alpha channel) with just22% 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 atarball.
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 toolscwebp
and dwebp
forconverting images to and from the WebP format. The full source code isavailable on thedownload page.
WebP Converter Download
Convert your favorite collection from PNG and JPEG to WebP by downloading theprecompiledcwebp
conversion tool for Linux, Windows or Mac OS X.
Tell us your experience on the project's mailing list.
- A new image format for the Web
- A new image format for the Web
- The QCOW2 Image Format
- The new stored format of Docker image on disk and Distribution
- The User-Agent string format for human-operated web browsers
- Setting the Background Image for a List Control
- 二、Building a Run-Time Image for the Emulator
- 14.8.2 Specifying the Row Format for a Table 指定表的Row Format
- openSUSE 11.4 – A New Hallmark For The openSUSE Project
- A New Venn Of Access Control For The API Economy
- A Few Things To Do For The New Year
- Wrong Image Format for bootm command
- A new deep convolutional neural network for fast hyperspectral image classification Review
- For a New Year
- Fix for "convert: no decode delegate for this image format"
- 14.9.2 Specifying the Row Format for a Table 指定 表的行格式
- The Laws of Software Process: A New Model for the Production and Management of Software
- NEW RULE FOR THE NEW ECONOMY
- IOS--之UIWindow(窗口)、UIView(视图)
- DP-POJ-3666-Making the Grade
- 罗马数字转换成阿拉伯数字
- 脚本语言的分类和应用(Lua)
- 【C++】primer plus 练习7.1
- A new image format for the Web
- python 基本语法 遍历 for while
- I2C_触摸屏调试记录
- const||C++
- 对普里姆算法的一点理解
- SharedPreferences
- unity之RotateAround 一个物体围绕另外一个物体旋转
- Ubuntu系统的安装与使用:[2]wubi安装镜像
- xcode一个逆天的功能