# Install webp with Homebrew, chocolatey, apt, MacPorts

Image format providing lossless and lossy compression for web images. Version 1.6.0 via Homebrew; verified 2026-07-06.

## Install

```sh
sudo av install brew:webp
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install webp
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install webp
```

  Evidence: MacPorts ports tree: graphics/webp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install webp
```

  Evidence: Debian stable package indexes: webp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

### Windows

- Chocolatey (92%):

```sh
choco install webp
```

  Evidence: Chocolatey community package catalog: webp from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='6.5836','capture'

## Package facts

- **Package key:** brew:webp
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/webp>
- **Version:** 1.6.0
- **Source summary:** Image format providing lossless and lossy compression for web images
- **Homepage:** <https://developers.google.com/speed/webp/>
- **Repository:** <https://chromium.googlesource.com/webm/libwebp>
- **Upstream docs:** <https://developers.google.com/speed/webp/docs>
- **License:** BSD-3-Clause
- **Source archive:** <https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.6.0.tar.gz>
- **Last updated:** 2026-07-06T07:17:41+02:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cwebp (cli)
- dwebp (cli)
- gif2webp (cli)
- img2webp (cli)
- webpinfo (cli)
- webpmux (cli)
- cwebp (alias)
- dwebp (alias)
- gif2webp (alias)
- img2webp (alias)
- webpinfo (alias)
- webpmux (alias)

## Dependencies

- giflib
- jpeg-turbo
- libpng

## Build dependencies

- cmake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.6.0
- Package-manager updated: 2026-07-06
- Local data: ok
- Upstream repository: https://developers.google.com/speed/webp/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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`.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <https://chromium.googlesource.com/webm/libwebp>
- <https://developers.google.com/speed/webp>
- <https://developers.google.com/speed/webp/docs/using>
- <https://developers.googleblog.com/en/webp-a-new-image-format-for-the-web/>
- <https://developers.googleblog.com/lossless-and-transparency-encoding-in-webp/>


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- Debian apt - webp - 1.5.0-0.1: normalized package name match | Debian stable package indexes: webp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lossy compression of digital photographic images (utilities) | https://developers.google.com/speed/webp/
- Ubuntu apt - webp - 1.3.2-0.4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: webp from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lossy compression of digital photographic images | https://developers.google.com/speed/webp/
- MacPorts - webp: normalized package name match | MacPorts ports tree: graphics/webp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - webp: normalized package name match | Chocolatey community package catalog: webp from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='6.5836','capture'


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [giflib](https://www.automicvault.com/pkg/brew/giflib/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://www.automicvault.com/pkg/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libpng](https://www.automicvault.com/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [chafa](https://www.automicvault.com/pkg/brew/chafa/) - Popular package that depends on this formula.
- [efl](https://www.automicvault.com/pkg/brew/efl/) - Popular package that depends on this formula.
- [ffmpeg-full](https://www.automicvault.com/pkg/brew/ffmpeg-full/) - Popular package that depends on this formula.
- [ffmpeg@4](https://www.automicvault.com/pkg/brew/ffmpeg-4/) - Popular package that depends on this formula.
- [flif](https://www.automicvault.com/pkg/brew/flif/) - Shares av.db curated category or tags: cli, compression, image-format, lossless, media.
- [catimg](https://www.automicvault.com/pkg/brew/catimg/) - Shares av.db curated category or tags: cli, image, media.
- [gif2png](https://www.automicvault.com/pkg/brew/gif2png/) - Shares av.db curated category or tags: cli, image, media.
- [gifcap](https://www.automicvault.com/pkg/brew/gifcap/) - Shares av.db curated category or tags: cli, image, media.
- [gifsicle](https://www.automicvault.com/pkg/brew/gifsicle/) - Shares av.db curated category or tags: cli, image, media.
- [gifski](https://www.automicvault.com/pkg/brew/gifski/) - Shares av.db curated category or tags: cli, image, media.
- [gimme-aws-creds](https://www.automicvault.com/pkg/brew/gimme-aws-creds/) - Shares av.db curated category or tags: cli, image, media.
- [grokj2k](https://www.automicvault.com/pkg/brew/grokj2k/) - Shares av.db curated category or tags: cli, image, media.
- [jbig2enc](https://www.automicvault.com/pkg/brew/jbig2enc/) - Both packages work with overlapping file formats or content types. Shared terms: cli, compression, giflib, image, jpeg.

## Combined YAML source

View the package source record on GitHub. [combined/webp.yml](https://github.com/automic-vault/db/blob/main/combined/webp.yml)


## Sources

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