jampack icon indicating copy to clipboard operation
jampack copied to clipboard

Vercel + Astro image compressions error

Open mradinoff opened this issue 1 year ago • 2 comments

Turning on Astro's Vercel Adapter option for imageService to true returns can't find img error.

e.g. Can't find img on disk src="/_vercel/image?examplepath"

mradinoff avatar Mar 27 '24 06:03 mradinoff

Hi! Can you share a real life HTML extract with images so I can understand how the Vercel adapter does things here?

georges-gomes avatar Mar 27 '24 07:03 georges-gomes

Sure thing, an img in my html output currently looks like this:

<img src="/_vercel/image?url=https%3A%2F%2Fwww.xxxx.com.au%2Fwp-content%2Fuploads%2Fsites%2F2%2F2023%2F08%2Fxxxx_dry_can_noShadow.png&amp;w=640&amp;q=100" title="xxxx_dry_can_noShadow.png" alt="xxxx_dry_can_noShadow.png" loading="lazy" width="auto" height="auto" decoding="async">

Let me know if there's anything else I can provide to help with this

mradinoff avatar Mar 27 '24 22:03 mradinoff

Hello, did you fix the issue ? If no, can you share me you're astro.config.* ?

No1ceTea avatar May 23 '24 15:05 No1ceTea

New release 0.24.4 can exclude some src urls. By default, /vercel/image?... is ignored now.

georges-gomes avatar May 24 '24 07:05 georges-gomes