anjanesh you can install cavif
by running the following commands as a shell user on your Opalstack web server:
mkdir -p ~/opt/src
cd ~/opt/src
wget https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.gz
tar zxf nasm-2.15.05.tar.gz
cd nasm-2.15.05/
./configure --prefix=$HOME/opt
make && make install
cd ~
export PATH=$HOME/opt/bin:$PATH
cargo install cavif
export PATH=$HOME/.cargo/bin:$PATH
Once that's done you should be good to go!
[xxxx@opal3 ~]$ cavif --help
cavif 0.5.1 09.2020 by Kornel LesiĆski. https://lib.rs/cavif
Usage:
cavif [OPTIONS] IMAGES...
Options:
--quality=n Quality from 1 (worst) to 100 (best), the default value is 80
--speed=n Encoding speed from 1 (best) to 10 (fast but ugly), the default value is 1
--overwrite Replace files if there's .avif already
-o path Write output to this path instead of samefile.avif
--quiet Don't print anything
--dirty-alpha Keep RGB colors of fully-transparent pixels
--color=mode ycbcr (default), rgb (not as good as you'd expect)