Using astro and react I have a custom image component:
<ImageWBorder
src="images/pix.avif"
alt="main band image"
leftBorder
/>
ImageWBorder
return (
<div className="aspect-square relative z-10 h-64 sm:h-72 sm:h-80 mobile:h-96 xl:h-100">
<img
alt={alt}
src={src}
className="object-cover w-full h-full rounded-full"
/>
<div style={{ zIndex: -1 }} className={styles} />
</div>
)
Images render fine on desktop but on my mobile device no image with the .avif extension renders. I thought .avif was widely supported on all browsers and operating systems? I am testing on an iPhone 13 on both Safari and Chrome.Does anyone else have any experience with these issues and can recommend a fix?