Tag Image change my background image to black in production build
Unanswered
Peterbald posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
PeterbaldOP
Hello, i've problem with tag Image in production build
i've an Image with Transparant Background, in my localhost i use tag Image from next/image
Production
Localhost
i've an Image with Transparant Background, in my localhost i use tag Image from next/image
<Image
width={500}
height={500}
objectFit="cover"
src="/images/bootcamp-lita.webp"
alt="image-tyas"
className="img-banner-tyas"
/>
.img-banner-tyas {
width: 100%;
object-fit: cover;
aspect-ratio: 3/2;
/* transition: transform 0.3s ease-in-out; */
transform: scale(
1.1
);
}
Production
<img alt="image-tyas" loading="lazy" width="500" height="500" decoding="async" data-nimg="1" class="img-banner-tyas" style="color:transparent" srcset="/_next/image?url=%2Fimages%2Fbootcamp-lita.webp&w=640&q=75 1x, /_next/image?url=%2Fimages%2Fbootcamp-lita.webp&w=1080&q=75 2x" src="/_next/image?url=%2Fimages%2Fbootcamp-lita.webp&w=1080&q=75">
Localhost
<img alt="image-tyas" loading="lazy" width="500" height="500" decoding="async" data-nimg="1" class="img-banner-tyas" style="color:transparent" srcset="/_next/image?url=%2Fimages%2Fbootcamp-lita.webp&w=640&q=75 1x, /_next/image?url=%2Fimages%2Fbootcamp-lita.webp&w=1080&q=75 2x" src="/_next/image?url=%2Fimages%2Fbootcamp-lita.webp&w=1080&q=75">
![Image](https://cdn.discordapp.com/attachments/1206555567813034084/1206555568018423840/image.png?ex=65dc6f70&is=65c9fa70&hm=a2cc3f6e62a8206dd6684d31afeda9bf656560d671b0bc9cce211f9fda583fbf&)
![Image](https://cdn.discordapp.com/attachments/1206555567813034084/1206555568278339644/image.png?ex=65dc6f70&is=65c9fa70&hm=3b247035e23a648e2cfd2d5781566bda70fae83ee0507dd855cd55294575257e&)
2 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
PeterbaldOP
Link: https://dev.enigmacamp.com/_next/image?url=%2Fimages%2Fbootcamp-lita.webp&w=640&q=75
i dont know the tag change my background image :/
i set backgroundColor manully in local, its work, but in production not work
i dont know the tag change my background image :/
i set backgroundColor manully in local, its work, but in production not work