How to force image pipeline to resize (and crop?) images at build time #1
Unanswered
vadimkantorov
asked this question in
Questions
Replies: 1 comment
|
You can pass these options directly to the ---
const data = [/*...*/]
---
{data.map(e => <Image src={e.image} alt="" quality="low" />)}Does that answer your question? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
E.g. I have high-res cover images in my Markdown frontmatter (so already imported via Astro image pipeline), now I'd like to display these images in a card grid as thumbnails (with fixed statically known resolution).
How do I ask Astro to generate low-res versions for thumbnails at build-time? (in my
CardsAstro component)Is it also possible to specify cropping / object-fit options?
Can I specify these as attrs of
<Image>tag? Or must I do agetImagecall? Can it process the images which are already imported via Astro pipeline?All reactions