🍺 BREW Explorer

← all formulae

libavif

brew install libavif v1.4.2 BSD-2-Clause

C library and command-line tools for encoding and decoding AV1 Image Format (.avif) files with support for all YUV formats and bit depths.

Why you might care

Use libavif when you need to work with modern, efficient AVIF images—a next-generation format offering better compression than JPEG/PNG. Includes both the C library (for embedding in applications) and CLI tools (avifenc/avifdec) for batch conversions. It's the reference implementation with broad format support and ties to the AOM codec ecosystem.

Categories

Alternatives

imagemagick ffmpeg dav1d
47.0k
30-day installs · #137
133.9k
90-day · #153
449.2k
365-day · #162
2.1k
★ GitHub stars · updated 1d ago

Runtime dependencies

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "imagemagick",
    "ffmpeg",
    "dav1d"
  ],
  "build_dependencies": [
    "cmake"
  ],
  "categories": [
    "image-tool",
    "library",
    "compression"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "aom",
    "dav1d",
    "jpeg-turbo",
    "libpng"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Library for encoding and decoding .avif files",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:41+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "libavif",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-06-19T08:51:35Z",
  "github_readme_excerpt": "# libavif\n\nThis library aims to be a friendly, portable C implementation of the AV1 Image\nFile Format, as described here:\n\n\u003chttps://aomediacodec.github.io/av1-avif/\u003e\n\nIt can encode and decode all AV1 supported YUV formats and bit depths (with\nalpha). In addition to the library, encoder and decoder command line tools are\nalso provided (`avifenc` and `avifdec`).\n\nIt is recommended that you check out/use\n[tagged releases](https://github.com/AOMediaCodec/libavif/releases) instead of\njust using the main branch. We will regularly create new versions as bug fixes\nand features are added.\n\n## Command line tool usage\n\n```sh\navifenc -q 75 input.[jpg|png|y4m] output.avif\navifdec output.avif decoded.png\n```\n\nSee `avifenc --help` for all options.\n\n## API usage\n\nPlease see the examples in the \"examples\" directory. If you\u0027re already building\n`libavif`, enable the CMake option `AVIF_BUILD_EXAMPLES` in order to build and\nrun the examples too.\n\n## Installation\n\n`libavif` is a package in most major OSs.\n\n### Windows\n\n```sh\nvcpkg install libavif\n```\nYou can also download the official windows binaries on the\n[release](https://github.com/AOMediaCodec/libavif/releases) page.\n\n### macOS\n\nHomebrew:\n```sh\nbrew install libavif\n```\nMacPorts:\n```sh\nsudo port install libavif\n```\n\n### Linux\n\nDebian-based distributions:\n```sh\nsudo apt install libavif-dev\n```\nRed Hat-based distributions:\n```sh\nsudo yum -y install libavif\n```\n\n### MinGW\n\nFor the \"default\" MSYS2 UCRT64 environment:\n```sh\npacman -S mingw-w64-ucrt-x86_64-libavif\n```\n\n## Build Notes\n\nBuilding libavif requires [CMake](https://cmake.org/).\nSee [Build Command Lines](#build-command-lines) below for example command lines.\n\n### Controlling Dependencies\n\nCMake flags like `AVIF_CODEC_AOM`, `AVIF_LIBYUV`, etc. allow enabling or\ndisabling dependencies. They can take three possible values:\n* `OFF`: the dependency is disabled.\n* `SYSTEM`: the dependency is expected to be installed on the system.\n* `LOCAL`: the dependency is built locally. In most ca",
  "github_repo": "AOMediaCodec/libavif",
  "github_stars": 2120,
  "github_topics": [],
  "homepage": "https://github.com/AOMediaCodec/libavif",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 47012,
  "installs_365d": 449157,
  "installs_90d": 133857,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-2-Clause",
  "llm_generated_at": "2026-06-20T23:42:57+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "libavif",
  "oldnames": [],
  "one_liner": "C library and command-line tools for encoding and decoding AV1 Image Format (.avif) files with support for all YUV formats and bit depths.",
  "optional_dependencies": [],
  "rank_30d": 137,
  "rank_365d": 162,
  "rank_90d": 153,
  "raw_hash": "e80db0b231991cb8",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/lib/libavif.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "1.4.2",
  "versioned_formulae": [],
  "why_use_this": "Use libavif when you need to work with modern, efficient AVIF images\u2014a next-generation format offering better compression than JPEG/PNG. Includes both the C library (for embedding in applications) and CLI tools (avifenc/avifdec) for batch conversions. It\u0027s the reference implementation with broad format support and ties to the AOM codec ecosystem."
}