Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, apt, MacPorts 安装 webp

查看 webp 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install webp

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install webp

MacPorts ports tree · graphics/webp/Portfile · 来源: api.github.com

Linux

Debian apt已验证 · 92%
sudo apt install webp

Debian stable package indexes · webp · 来源: deb.debian.org

概览

软件包摘要

Image format providing lossless and lossy compression for web images

命令和别名

  • cwebp
  • dwebp
  • gif2webp
  • img2webp
  • webpinfo
  • webpmux

历史

项目历史与用法

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.

时间线

  • 2010-09-30: Google announced WebP as a new image format for the web.
  • 2010: The initial design was based on VP8 intra-frame coding and a lightweight RIFF container.
  • 2011-11-18: Google announced WebP lossless compression and alpha transparency support.
  • 2012: libwebp 0.2-era tooling made lossless and transparency modes available in the reference implementation.
  • 2025-08-07: Google's getting-started documentation still described libwebp command-line tools and API usage.

Related projects

  • WebP is related to WebM and VP8 through its compression lineage, to libwebp as the reference implementation, and to competing or complementary image formats such as JPEG, PNG, GIF, APNG, AVIF, and JPEG XL.

安全态势

风险级别:blue

broad file, network, media, or database tool signal.

风险分类器

blue 风险 · 中 置信度 · tool

原因

  • broad file, network, media, or database tool signal

信号

  • text:compress,image

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 安装时包含 3 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
cwebpcli全局可执行文件
dwebpcli全局可执行文件
gif2webpcli全局可执行文件
img2webpcli全局可执行文件
webpinfocli全局可执行文件
webpmuxcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.6.0
管理器更新时间2026-07-06
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
依赖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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namewebp
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

webp 1.5.0-0.1

Lossy compression of digital photographic images (utilities)

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

sudo apt install webp
  • Section: graphics
  • Architecture: amd64
  • Source Package: libwebp
  • 11 依赖
  • normalized package name match
  • 匹配方式:Webp
Debian stable package indexes · deb.debian.org · Debian stable package indexes: webp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

webp 1.3.2-0.4build3

Lossy compression of digital photographic images

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

sudo apt install webp
  • Section: universe/graphics
  • Architecture: amd64
  • Source Package: libwebp
  • 12 依赖
  • normalized package name match
  • 匹配方式:Webp
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: webp from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
MacPorts95%

webp

sudo port install webp
  • normalized package name match
  • 匹配方式:Webp
MacPorts ports tree · api.github.com · MacPorts ports tree: graphics/webp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

webp

choco install webp
  • normalized package name match
  • 匹配方式:Webp
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: webp from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='6.5836','capture'

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment