Sorry for the dumb question, but something seems really unintuitive in how images work in Astro 3. I'm a seasoned web dev and I can't figure it out. 🤷♂️
this was my code in Astro 2:
<Picture
class="img"
src={`/images/posters/${slug}.jpg`}
widths={[400, 800, 1200, 1800]}
sizes="(max-width: 1800px) 100vw, 1800px"
formats={['webp', 'jpeg']}
alt={name}
/>
I strip away everything except src/formats/alt, just to keep it minimal, and it doesn't work. apparently you can no longer pass URLs to src? but I can't import that image because it's dynamic. I tried using getImage() which is what Kapai suggested, but I can't take that result and pass it to Picture
any help would be super appreciated!