astro icon indicating copy to clipboard operation
astro copied to clipboard

@astrojs/image not processing the image from frontmatter correctly

Open djmtype opened this issue 1 year ago • 3 comments

What version of astro are you using?

1.0.7

Are you using an SSR adapter? If so, which one?

none

What package manager are you using?

npm

What operating system are you using?

Mac

Describe the Bug

When referencing images from markdown's frontmatter that have been placed within public or src, the <Image /> or <Picture /> component doesn't render the image. However, it does process the image's alt info correctly.

I would've liked to provide a Stackblitz or CodeSandBox example, but neither worked with @astro/image for different reasons.

Link to Minimal Reproducible Example

https://github.com/djmtype/Broken-Astro-Img

Participation

  • [ ] I am willing to submit a pull request for this issue.

djmtype avatar Aug 23 '22 14:08 djmtype