Use next/image plus the built-in optimizer, priority on the first ten covers (deprecated in v16 in favour of preload), sizes, and placeholder="blur" fed by ThumbHash data URIs generated by this port's own code.
<Image
alt={title}
blurDataURL={thumbhash ? createPngDataUri(thumbhash) : undefined}
fill
placeholder={thumbhash ? 'blur' : 'empty'}
priority={priority}
sizes={sizes}
src={resolved}
/>
From this repo's next-books/features/book/components/book-cover.tsx (some props omitted).
Art direction with <picture>
ManualServing a different crop or format per screen size. Not scored: the label shows how much the framework does for you.
getImageProps() returns per-breakpoint props; you hand-write the <picture> and <source> elements (hence 🔧). getImageProps() is stable (v14.1.0) and the built-in optimizer already negotiates AVIF/WebP from the Accept header; this row scores only whether the framework emits a <picture> for you.
const {
props: { srcSet: desktop },
} = getImageProps({ ...common, width: 1440, height: 875, quality: 80, src: '/desktop.jpg' })
const {
props: { srcSet: mobile, ...rest },
} = getImageProps({ ...common, width: 750, height: 1334, quality: 70, src: '/mobile.jpg' })
return (
<picture>
<source media="(min-width: 1000px)" srcSet={desktop} />
<source media="(min-width: 500px)" srcSet={mobile} />
<img {...rest} style={{ width: '100%', height: 'auto' }} />
</picture>
)
Adapted from the image docs, where common is { alt: 'Art Direction Example', sizes: '100vw' }.