Image Optimization

Runtime Image Endpoint

Astro logo optimized by the runtime image endpoint

请求由官方 Node Adapter 的 /_image Endpoint 处理。

本地图片优化

A locally imported landscape optimized to WebP by Astro

从 src/assets/local-landscape.png 静态导入,在请求时缩放到720 × 450,并以质量 75 转换为 WebP。

本地路径图片

A landscape served from the public directory

通过 /images/local-landscape.png 直接加载 PNG 原图。

外部图片优化

An external PNG optimized to WebP by Astro

从远程 PNG 原图 1004 × 986 缩放到 502 × 493,并以质量75 转换为 WebP。