Build-time transforms scale with source size
Every image Astro processes is decoded, resized and encoded. Smaller WebP sources finish faster in CI and produce smaller outputs even when you request quality 80 again.
Why it matters
- Content collections with 50 posts × 5 images punish CI.
- MDX authors drop PNG screenshots at Retina 2×.
- Static hosts bill for bandwidth.
How to do it
- Convert
src/assetsandpublic/photos. - Keep SVG for logos. Use WebP for photos and screenshots.
- Let
<Image />still set width/height and srcset.
Settings that work
Blog 1200 px / 82%. Heroes 1920 / 78%. Screenshots 1400 / 90%.