Show HN: Avifify.sh – Encode PNGs into web optimized AVIF images

3 pointsposted 10 days ago
by theandrewbailey

3 Comments

juliobbv

10 days ago

This is cool stuff! BTW, I see that you're using `avifenc` with `aomenc` to encode AVIF, so there are few suggestions that overall increase image quality per size:

- `deltaq-mode=2` or `deltaq-mode=3` each enable different flavors of variance adaptive quantization, for a more consistent image quality

- `tune=ssim` enables the SSIM tune, which correlates better with subjective quality

In addition, if you're adventurous, you might want to switch to an alternative encoder that has further tuning for static images. Examples are https://gitlab.com/damian101/aom-psy101 (which notably has a fixed `sharpness` parameter that actually works beyond a value of 1), and most recently, https://svt-av1-psy.com/avif/ with the new "still tune" 4 that reliably beats aomenc in 4:2:0 chroma mode at medium effort speeds.

theandrewbailey

10 days ago

Thanks! I didn't know about those other encoders. I'll try them out.

I was using the deltaq-mode parameter at one point, but I took it out and noticed that literally nothing changed on the resulting images, even the artifacts were the same. (Maybe I didn't try enough images?)

juliobbv

8 days ago

Sounds good! Let me know if you have any questions about SVT-AV1-PSY (I'm a developer).

You can check if deltaq is being used in pictures, by opening the AVIFs in aomanalyzer (https://pengbins.github.io/aomanalyzer.io/), and in the Frame Info tab, check that the DeltaQ Res / Present Flag are set.