Allow .avif Image Format

Is there any way to allow the ".avif" image format to be used for the product images?
I can upload it and i see it but when i save i get the error:
"it is not allowed to upload files with the .avif extension here.

Not sure if imagick or gdlib can work with this format. Try to check it by enabling allowed extensions here