talira

HEIF and AVIF image file format decoder and encoder

open sourceLGPL-3.0-or-later AND MITfree

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.

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

Alternatives

The same job

These do what libheif does.

  1. libwebp Library to encode and decode images in WebP format

Compare libheif with the top 3