How to Create AVIF Images with GIMP

AVIF (AV1 Image File Format) is a modern image format that delivers significantly better compression and quality than legacy formats like JPEG and WebP. This guide explains how to convert and export images into the AVIF format using GIMP, the popular free and open-source image editor, alongside a few quick alternative open-source command-line tools.

Prerequisites

Native AVIF support was introduced in GIMP version 2.10.22 via the libheif library. Before starting, ensure that your installation of GIMP is updated to version 2.10.22 or higher. You can verify your version by navigating to Help > About GIMP.

Step-by-Step Guide to Exporting AVIF in GIMP

1. Open Your Image

Launch GIMP and open the image you want to convert by going to File > Open, or drag and drop your file into the GIMP workspace. Perform any necessary cropping, resizing, or color adjustments before exporting.

2. Open the Export Dialog

Click File in the top menu and select Export As... (or use the shortcut Shift + Ctrl + E).

3. Set the File Extension

In the Export Image window:

4. Adjust AVIF Export Settings

A dialog box titled Export Image as AVIF will appear with several compression parameters:

5. Finalize the Export

Click the Export button. GIMP will process the image and save your new AVIF file to the designated directory.

Alternative Open-Source Methods

If you need to batch-process images or prefer working from the terminal, other open-source tools can create AVIF images quickly:

ImageMagick

With ImageMagick installed (v7.0.10-25 or later with libheif support), convert an image using:

magick input.jpg -quality 75 output.avif

FFmpeg

If your FFmpeg build includes libsvtav1 or libaom-av1, convert images directly via the command line:

ffmpeg -i input.png -c:v libaom-av1 -crf 30 output.avif