# AOMediaCodec/libavif

libavif - Library for encoding and decoding .avif files

Repository: https://github.com/AOMediaCodec/libavif
Canonical: https://ross.abutalabs.com/products/libavif
Language: C
License: NOASSERTION
License Family: other
Last push: 2026-08-26T12:47:18+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 74, longevity 100
- inputs: {"age_days": 2641, "days_push": 7, "days_rel": 99, "gap_med": 53, "n_releases_24m": 6}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2163, forks 300 (observed 2026-08-28T04:06:21.110792+00:00)

## What it is
libavif is a portable C library for encoding and decoding AVIF (AV1 Image File Format) images, supporting all AV1 YUV formats and bit depths with alpha. It also ships command line tools avifenc and avifdec for converting images to and from AVIF.

## Use cases
- convert png or jpg images to avif format
- decode avif files to png
- compress images with av1 for smaller file sizes
- add avif encoding and decoding support to an application
- batch encode images to avif from the command line
- handle alpha channel images in avif format

## When to choose
- you need a mature, widely packaged AVIF codec library in C or C++
- you want command line tools for quick AVIF conversions
- you need fine control over AV1 codec dependencies like libaom, dav1d, or libgav1
- your app must support all AV1 YUV formats and bit depths including alpha

## When to avoid
- you only need AVIF support in a high-level language and prefer a binding-free pure implementation
- you need to encode or decode other image formats like webp or jpeg xl
- you cannot build C code or manage AV1 codec dependencies

## Facets
- artifact type: library
- maturity: active
- function: image-processing, cli
- domain: image-processing, media, files
- platform: cross-platform, windows, cli
- tags: avif, av1, c, codec, image-encoding, image-decoding, linux, macos

## Member repositories
- AOMediaCodec/libavif (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:21.110792+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:50:11.133518+00:00, confidence not recorded.
  - readme: https://github.com/AOMediaCodec/libavif (fetched 2026-08-28T04:06:21.110792+00:00, sha 5397b49cbfce)
- Data as of 2026-08-30T08:39:29.467469+00:00.
