[READ-ONLY] Mirror of https://github.com/mrgnw/avify.
0

Configure Feed

Select the types of activity you want to include in your feed.

29 1 2

Clone this repository

https://git.vm.fail/xcc.es/avify https://git.vm.fail/did:plc:zvswefpn57nmft3nlu47ax2v
ssh://git@knot1.tangled.sh:2222/xcc.es/avify ssh://git@knot1.tangled.sh:2222/did:plc:zvswefpn57nmft3nlu47ax2v

For self-hosted knots, clone URLs may differ based on your setup.


README.md

avify#

Batch convert images to AVIF with parallel encoding.

Supports RAW camera files (ARW, CR2, CR3, DNG, NEF, etc.), HEIC/HEIF, and standard formats (JPEG, PNG, WebP, BMP, TIFF, GIF).

Note: This is proof-of-concept code. It may be unreliable and is not actively maintained.

Install#

cargo install avify

HEIC/HEIF support (optional)#

HEIC requires the libheif system library. Enable with:

brew install libheif
cargo install avify --features heic

See build.sh for a script that builds a minimal decode-only libheif from source.

Usage#

avify [OPTIONS] [FILES]...

If no files are given, converts all supported images in the current directory.

Options#

Flag Description Default
-q, --quality Encoding quality (0-100) 80
-s, --speed Encoding speed (1-10, higher = faster) 10
-o, --outdir Output directory for AVIF files same as input
-m, --move-originals Move originals to this directory after conversion
-t, --trash Trash originals after conversion (macOS)
-x, --xmp Apply Lightroom XMP sidecar edits

Examples#

avify *.jpg

avify -q 90 -s 6 photo.arw

avify -o converted/ -m originals/

avify -x raw_photos/*.cr3

Features#

  • Parallel encoding via rayon — uses all CPU cores
  • RAW support via imagepipe (ARW, CR2, CR3, DNG, NEF, ORF, RAF, RW2, PEF, SRW, X3F)
  • HEIC/HEIF support via libheif (optional, opt-in via --features heic)
  • XMP sidecar edits — applies Lightroom exposure, contrast, highlights, shadows, white balance, crop, saturation, and vibrance adjustments
  • 10-bit AVIF output for better color depth

License#

This project is licensed under MIT.

This project depends on the following libraries with their own licenses: