placeholder blur not working
Unanswered
Yacare Caiman posted this in #help-forum
Yacare CaimanOP
I am using nextjs's Image component but the placeholder blur is not working any idea why , I am getting the images from my firebase db and then displaying them
<SwiperSlide key={index} className="!text-white relative">
<div className="absolute inset-0">
<Image
// @ts-ignore
src={img}
alt={`Image ${index + 1}`}
layout="fill"
objectFit="cover"
placeholder="blur"
/>
</div>
</SwiperSlide>1 Reply
@Yacare Caiman I am using nextjs's Image component but the placeholder blur is not working any idea why , I am getting the images from my firebase db and then displaying them
tsx
<SwiperSlide key={index} className="!text-white relative">
<div className="absolute inset-0">
<Image
// @ts-ignore
src={img}
alt={`Image ${index + 1}`}
layout="fill"
objectFit="cover"
placeholder="blur"
/>
</div>
</SwiperSlide>
if you have a dynamic
more details: https://nextjs.org/docs/app/api-reference/components/image#placeholder
src value (not from a static import) then you need to manually specify the blurDataURL prop, the blur is not calculated at runtimemore details: https://nextjs.org/docs/app/api-reference/components/image#placeholder