Commands that i used to optimize my Images
AV1F#
- First Install
avifenc
i don’t know about other distros but on Void
xbps-install libavif
avifenc -j 2 -d 10 -y 422 --min 24 --max 24 --minalpha 24 --maxalpha 24 input.img output.avif
Note#
- increase number of theards to speed up the process
-j 4
WEBP#
- install
imagemagick
- For lossless
magick mogrify -format webp -quality 50 -define webp:lossless=true input.png output.webp
- lossy compression
magick mogrify -format webp -quality 82 input.png output.webp
JPEG#
i just dont use jpeg images but here is a command found in the web
magick mogrify -format jpeg -sampling-factor 4:2:0 -strip -quality 80 -interlace JPEG -colorspace sRGB *.jpeg *.jpg
Never used this command doesnt know this works