knowledge/technology/files/media/image/AVIF.md

52 lines
1.5 KiB
Markdown
Raw Normal View History

2023-12-04 10:02:23 +00:00
---
2024-03-06 12:15:41 +00:00
obj: format
mime: "image/avif"
extension: "avif"
2023-12-04 10:02:23 +00:00
website: https://aomediacodec.github.io/av1-avif
---
2024-02-27 10:06:13 +00:00
2023-12-04 10:02:23 +00:00
# AVIF
AV1 Image File Format (AVIF) is an open, royalty-free image file format specification for storing images or image sequences compressed with AV1 in the HEIF container format. It competes with HEIC, which uses the same container format built upon ISOBMFF, but HEVC for compression. Version 1.0.0 of the AVIF specification was finalized in February 2019.
2024-02-27 10:06:13 +00:00
| Name | Value |
| --------------------- | ------------ |
| Filename extension | .avif |
| [MIME](../../MIME.md) | `image/avif` |
2023-12-04 10:02:23 +00:00
## Features
The AV1 Image File Format supports:
2024-01-17 08:44:04 +00:00
- Multiple color spaces, including:
- HDR (with PQ or HLG transfer functions and BT.2020 color primaries, as part of BT.2100)
2024-02-27 10:06:13 +00:00
- SDR (with sRGB/ BT.709 / BT.601 or with wide color gamut)
2024-01-17 08:44:04 +00:00
- Color space signaling via CICP (ITU-T H.273 and ISO/IEC 23091-2) or ICC profiles
- Lossless compression and lossy compression
- 8-, 10-, and 12-bit color depths
2023-12-04 10:02:23 +00:00
- Monochrome (alpha/depth) or multi-components
2024-01-17 08:44:04 +00:00
- 4:2:0, 4:2:2, 4:4:4 chroma subsampling and RGB
- Film grain synthesis
2023-12-04 10:02:23 +00:00
- Image sequences/animation
## Usage
2024-03-06 13:42:49 +00:00
`libavif` provides functions for working with AVIF images.
2023-12-04 10:02:23 +00:00
**Convert from AVIF:**
```shell
avifdec [INPUT] [OUTPUT]
```
**Get information**
```shell
avifdec --info [INPUT]
```
**Convert to AVIF**
```shell
avifenc [OPTIONS] [INPUT] [OUTPUT]
```
_Flags:_
```shell
-j, --jobs <NUM> Number of threads
-l, --lossless Lossless encoding
```