Sign inSign up

gebi/avif

By gebi

•Updated almost 6 years ago

avif with working encode support using go-avif/libaom

Image
0

412

gebi/avif repository overview

⁠go-avif cli tool

Usage: avif [options] -e src_filename -o dst_filename

AVIF encoder

Options:
  -h, --help                Give this help
  -V, --version             Display version number
  -e <src>, --encode=<src>  Source filename
  -o <dst>, --output=<dst>  Destination filename
  -q <qp>, --quality=<qp>   Compression level (0..63), [default: 25]
  -s <spd>, --speed=<spd>   Compression speed (0..8), [default: 4]
  --lossless                Lossless compression (alias for -q 0)
  --best                    Slowest compression method (alias for -s 0)
  --fast                    Fastest compression method (alias for -s 8)

⁠Example

convert jpeg to avif

docker run --rm --user 1000:1000 --volume `pwd`:/mnt --memory 8G gebi/avif --best -e /mnt/test.jpg -o /mnt/test.avif

⁠Note

avif with this version of libaom can use huge amounts of memory for higher resolution images (>16GB for 8736x4032 and still didn't finish)

⁠Docker file

https://github.com/gebi/container-zoo/blob/master/avif/20.04/Dockerfile⁠

Tag summary

Content type

Image

Digest

Size

48.9 MB

Last updated

almost 6 years ago

docker pull gebi/avif