libavif is a portable, open-source C library that implements encoding and decoding for the AVIF (AV1 Image File Format), offering a robust, production-ready way to work with AVIF images across platforms. It supports all AV1-supported YUV formats and bit-depths, including alpha (transparency), and includes command-line tools (avifenc and avifdec) to easily convert to/from AVIF from common image formats like JPEG, PNG, or Y4M. The API is straightforward, allowing applications to integrate AVIF support natively — creating, decoding, compressing, or decompressing images programmatically. Recent developments have added experimental support for HDR gain maps, improved color-space handling (including wide color gamut and high bit depth), and better quality tuning modes for encoding, making libavif a cutting-edge tool for high-quality image compression.

Features

  • Encoding and decoding support for AVIF images, including all AV1-supported bit-depths, color formats, and alpha channel for transparency
  • Command-line utilities (avifenc, avifdec) for converting between common formats (JPEG/PNG/Y4M) and AVIF for easy use in scripts or pipelines
  • API for programmatic creation, decoding, and manipulation of AVIF images — usable in C/C++ applications or bindings
  • Support (since recent versions) for HDR gain-map encoding — enabling high dynamic range (HDR) AVIF images while maintaining backward compatibility with SDR displays
  • Efficient compression achieving much smaller file sizes than traditional formats while preserving visual fidelity — beneficial for web, storage, or bandwidth-sensitive applications
  • Cross-platform portability and active maintenance, making it a reliable library for image handling in varied environments

Project Samples

Project Activity

See All Activity >

Categories

Video Encoders

License

MIT License

Follow libavif

libavif Web Site

Other Useful Business Software
Award-Winning Medical Office Software Designed for Your Specialty Icon
Award-Winning Medical Office Software Designed for Your Specialty

Succeed and scale your practice with cloud-based, data-backed, AI-powered healthcare software.

RXNT is an ambulatory healthcare technology pioneer that empowers medical practices and healthcare organizations to succeed and scale through innovative, data-backed, AI-powered software.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of libavif!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C

Related Categories

C Video Encoders

Registered

2025-12-08