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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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

3 days ago