3 ms·
Last week, I encoded a bunch of images into AVIF. For the same dimensions and roughly same file size, AVIF images are dramatically clearer than JPEG. I wish I c
by theandrewbailey 7y ago
Last week, I encoded a bunch of images into AVIF. For the same dimensions and roughly same file size, AVIF images are dramatically clearer than JPEG. I wish I could start using them right now, but:
1. The AVIF encoder I was using[0] is based off libaom, which means a 1080p image takes almost 30 seconds to encode. rav1e is supposedly much faster, so I wonder how well it would do for AVIF.
2. Almost no viewer or browser support, and what does is usually some kind of beta or preview. (VLC nightly, Windows 10 AV1 plugin[1])
[0] https://github.com/Kagami/go-avif https://github.com/Kagami/go-avif
[1] https://www.microsoft.com/en-us/p/av1-video-extension-beta/9mvzqvxjbq9v https://www.microsoft.com/en-us/p/av1-video-extension-beta/9...
- dspillett 7y ago> Almost no viewer or browser support For browser support it should be possible to implement a poly-fill similar to https://github.com/UprootLabs/poly-flif https://github.com/UprootLabs/poly-flif which renders images in the FLIF format (https://flif.info/ https://flif.info/) into canvas elements. FLIF as a format might be worth looking at while you are reviewing the area.
- theandrewbailey 7y agoThere is an AVIF polyfill, but it has lots of important edge cases. https://github.com/Kagami/avif.js https://github.com/Kagami/avif.js I'd rather keep it simple and not deal with more JS, and I'm OK with using JPEG for now. (I've been using mozJPEG for years)
- arghwhat 7y ago> which means a 1080p image takes almost 30 seconds to encode. As you mention, rav1e would help, but HEVC/HEIF is only acceptable in speed due to hardware support. AV1 is slowly making its way into silicon, though. I'm personally interested in seeing this make its way into cameras - even when I shoot in RAW, I often just use the off-camera JPG. I'd love for that to be AVIF instead.