fix: remove jpeg and png and use webp as fallback

This commit is contained in:
Stefan Imhoff
2026-01-24 19:47:04 +01:00
committed by Stefan Imhoff
parent 14c4a83147
commit ed11a1a7b1
2 changed files with 3 additions and 444 deletions

View File

@@ -92,13 +92,14 @@ const wrapperProps = href ? { href } : {};
alt={alt ?? ''}
class="rounded-2"
decoding={decoding}
formats={['avif', 'webp', 'jpg', 'png']}
fallbackFormat="webp"
formats={['avif', 'webp']}
height={parsedHeight}
loading={loading}
quality={quality}
sizes={sizes}
src={localImage}
width={parsedWidth}
height={parsedHeight}
/>
) : (
<img