macOS
brew install webplocal Homebrew formula metadata
sudo port install webpMacPorts ports tree · graphics/webp/Portfile · 来源: api.github.com
安装
brew install webplocal Homebrew formula metadata
sudo port install webpMacPorts ports tree · graphics/webp/Portfile · 来源: api.github.com
choco install webpChocolatey community package catalog · webp · 来源: community.chocolatey.org
概览
Image format providing lossless and lossy compression for web images
历史
WebP is Google's image format and codec family for smaller web images, supporting lossy compression, lossless compression, transparency, and animation. The Homebrew package exposes the practical side of that format through libwebp command-line tools such as `cwebp`, `dwebp`, `gif2webp`, `img2webp`, `webpinfo`, and `webpmux`.
Google announced WebP on September 30, 2010 as part of its Make the Web Faster work. The launch post argued that images were a large share of web page bytes and introduced WebP as a developer preview for reducing photo file sizes while preserving visual quality.
The original WebP design used still-image coding techniques derived from the VP8 codec that Google had open-sourced earlier in 2010, with a lightweight RIFF-based container. Google's launch test re-encoded about one million web images and reported an average file-size reduction of 39 percent under its comparison method.
On November 18, 2011, Google announced lossless compression and alpha-channel support for WebP. That update broadened WebP from a JPEG-oriented lossy photo format into a candidate for PNG-like graphics, transparent web assets, and GIF-style animations.
WebP adoption was gradual because image formats require browser, tooling, CDN, and authoring support. Google's current WebP documentation describes native support in major browsers including Chrome, Safari, Firefox, Edge, and Opera, plus support in many tools and software libraries.
The format's adoption history is tied to web performance practice: developers and site operators use WebP when reducing image transfer size matters more than preserving older universal compatibility. Its eventual broad browser support made it a common output target in image pipelines, static-site generators, CDNs, and asset optimization tools.
The reference libwebp distribution provides encoder and decoder tools. Google's getting-started guide documents `cwebp` for converting PNG or JPEG images into WebP and `dwebp` for decoding WebP to formats such as PNG or PPM, while the library API lets applications and browsers add WebP support directly.
In day-to-day package use, `cwebp` is the workhorse for lossy and lossless conversion, `dwebp` is used for inspection or compatibility conversion, `gif2webp` and `img2webp` handle animation workflows, and `webpmux`/`webpinfo` serve metadata, container, and debugging tasks.
For package people, WebP is both a format and a toolchain package. Installing it gives scripts and build systems the canonical CLI encoder/decoder tools, which is why it appears in web optimization, media-processing, browser-adjacent, and static-site workflows.
WebP also marks a period when browser vendors and web-performance engineers tried to replace legacy web image defaults with formats designed around network cost. Even after newer formats such as AVIF appeared, WebP remained important because it reached wide browser and tooling support earlier.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cwebp | cli | 全局可执行文件 | |
dwebp | cli | 全局可执行文件 | |
gif2webp | cli | 全局可执行文件 | |
img2webp | cli | 全局可执行文件 | |
webpinfo | cli | 全局可执行文件 | |
webpmux | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://developers.google.com/speed/webp/
安装元数据
| 软件包键 | brew:webp |
|---|---|
| 版本 | 1.6.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/webp |
| 主页 | https://developers.google.com/speed/webp/ |
| 仓库 | https://chromium.googlesource.com/webm/libwebp |
| 上游文档 | https://developers.google.com/speed/webp/docs |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.6.0.tar.gz |
| 最后更新 | 2026-07-06T07:17:41+02:00 |
| Pulse | updated |
| 依赖 | giflib, jpeg-turbo, libpng |
| 构建依赖 | cmake |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | webp |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
webp 1.5.0-0.1
Lossy compression of digital photographic images (utilities)
https://developers.google.com/speed/webp/
sudo apt install webpwebp 1.3.2-0.4build3
Lossy compression of digital photographic images
https://developers.google.com/speed/webp/
sudo apt install webpwebp
sudo port install webpwebp
choco install webp来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.