# libheif

> HEIF and AVIF image file format decoder and encoder

Source: https://talira.ai/catalog/libheif-09e5kekk
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [media / images / codecs](https://talira.ai/categories/media/images/codecs), [languages / c cpp](https://talira.ai/categories/languages/c-cpp)
- Licence: LGPL-3.0-or-later AND MIT[^2][^3]
- Pricing: Free and open source[^1]
- Pricing notes: Free; commercial support agreements are available from its author.
- Free tier: yes[^1]
- Backed by: [Dirk Farin](https://talira.ai/orgs/dirk-farin.md)

libheif is a C/C++ library that reads and writes HEIF images (ISO/IEC 23008-12): HEIC (HEVC-coded) and AVIF (AV1), plus HEIF coded with VVC, AVC, JPEG, JPEG 2000 and the built-in uncompressed ISO/IEC 23001-17 codec. It handles alpha channels, depth maps, thumbnails, multiple images, image sequences and MP4 video, tiled images, HDR with colour profiles, transformations and overlays, EXIF and XMP metadata and region annotations. It uses codec libraries underneath (libde265 and x265 for HEIC; libaom, dav1d, SVT-AV1 or rav1e for AVIF), which can also be loaded as plugins. A single independent developer, Dirk Farin, maintains it and offers commercial support.

## Links

- GitHub: https://github.com/strukturag/libheif

## Problems it solves

- open HEIC photos from an iPhone in my application
- encode images to AVIF from C or C++
- read HEIC images on Linux from my own program

## Features

- decode and encode HEIC and AVIF images
- VVC, AVC, JPEG and JPEG 2000 coded HEIF, and uncompressed ISO/IEC 23001-17
- alpha, depth maps, thumbnails, sequences and tiled images
- HDR with colour profiles and EXIF/XMP metadata
- codecs as loadable plugins

## Trust

Overall: 0.61 out of 1.
Signals: maintenance 0.85, adoption 0.68, momentum 0.41, community 0.86, backing 0.30, extensibility 0.00.

- last commit 35 days ago
- 248 commits in the last 90 days
- latest release v1.23.7 34 days ago
- 2.4k GitHub stars
- 141 contributors
- accepts sponsorship (Github, Custom)
- backed by Dirk Farin

## Related

- Works with [libaom](https://talira.ai/catalog/libaom-17tkc3wt.md)

## Alternatives

- [libwebp](https://talira.ai/catalog/libwebp-8yrgmmwn.md): Library to encode and decode images in WebP format

## Sources

[^1]: https://github.com/strukturag/libheif/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/strukturag/libheif/blob/master/COPYING (checked 29 Nov 2026)
[^3]: https://github.com/strukturag/libheif/blob/master/libheif/api/libheif/heif.h (checked 29 Nov 2026)
