-
Notifications
You must be signed in to change notification settings - Fork 29.4k
Closed
Milestone
Description
What version of Next.js are you using?
11.0.0
What version of Node.js are you using?
14.13.1
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
Vercel
Describe the Bug
Blurred images are not respecting the objectPosition property in Image component
Full image: Example Image
Expected Behavior
The blurred placeholder should have the save position as the the later loaded full image.
What I expect:
An easy fix for this would be to mirror the object-position
value to the background-position
value while loading.
To Reproduce
Setup:
import Image from 'next/image'
import exampleImg from '../data/example.png'
const Page = () => (
<Image
src={exampleImg}
width={1024}
height={700}
layout="responsive"
objectFit="cover"
objectPosition="center"
placeholder="blur"
/>
)
export default Page
Deployed example: schoenwaldnils.vercel.app/objectPositionIssue