đŸ–ŧī¸ Internal Image Optimization

This page demonstrates Astro's built-in image optimization for local images using the Image component.

âš–ī¸ Comparison: Regular vs Optimized

Regular <img> tag

Regular image
  • No optimization
  • Original file size (See image size in N/W tab)
  • No format conversion
  • No responsive sizing

Astro <Image> component

Optimized image
  • Automatic optimization
  • Compressed file size (See image size in N/W tab)
  • Modern formats (WebP, AVIF)
  • Responsive sizing

✨ Image Optimization Features

đŸ—œī¸ Compression

Automatic compression with quality control

🔄 Format Conversion

Convert to modern formats like WebP and AVIF

📱 Responsive

Generate multiple sizes for different devices

⚡ Lazy Loading

Built-in lazy loading for better performance

â„šī¸ How It Works

← Back to Home