Add avif images in HTML using nginx as a server
问题 I created some avif images with heif-anc : for i in card*.png ; do heif-enc "$i" -o "${i%.*}.avif" ; done But When I added them to my website, it just proposed to download the image instead. Then I enabled avif images in my nginx-config with http { types { image/avif avif; } ... Now it tries to display the image, but they seem to be broken. If you call it directly, Firefox with successfully enabled avif support shows this error message: avif could not be displayed because it contains errors