AVIF file format support?

Hi,
Any plans to support the new-ish
AVIF video/image very size-efficient file format in THREE.js?
Thanks!

If your browser supports AVIF (Can I use... Support tables for HTML5, CSS3, etc) then it should work fine in three.js. At the moment, that’s Chrome and Firefox. I’m not sure about usage as video though.

Also note that while the file size of AVIF is very efficient, it still needs to be decompressed in GPU memory like PNG or JPEG, and this tends to be a slow step the first time you render the texture. For more efficient use of GPU memory and texture upload time I would recommend GPU texture formats like KTX2 and Basis Universal.

2 Likes