#Next Image help
24 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
it still requires the width and height property
you should have height right? and for the width give the initial number for your max height
i want to have height stretched according to the parent
I think what you are looking for is
https://nextjs.org/docs/app/api-reference/components/image#fill
try fill={true} @light gyro
yeah but its kinda low quality
low quality? hmm by default next/image uses .75 for its quality
try add quality={100}
do you have wrong resolution or low quality?
okay so i fixed it somehow but its not overflowing:
<div className="absolute h-full border top-0 left-0">
<Image
className='h-full'
src="/background.webp"
alt="Background"
width={5760}
height={1080}
objectFit='cover'
priority
/>
</div>