Modern Images

Converts images to modern formats (WebP, AVIF) with responsive srcset, disk caching, and LCP preload support.

Plugin

Modern Images

Converts images to modern formats (WebP, AVIF) with responsive srcset, disk caching, and LCP preload support.

  • Category: Media
  • Status: available
  • Version: 1.3.0
  • Price: Unknown
  • Source: npm package
  • Install method: Native npm integration
  • Verified: 2026-11-01
  • Compatibility: EmDash ^0.12.0
  • Maintainer: Adriano Amalfi

Converts images to modern formats (WebP, AVIF) with responsive srcset, disk caching, and LCP preload support.

Installation

Install the package from npm:

npm install emdash-plugin-modern-images

Register the plugin in your Astro config:

import { modernImagesPlugin } from "emdash-plugin-modern-images";

export default defineConfig({
  integrations: [
    emdash({
      plugins: [modernImagesPlugin()],
    }),
  ],
});

Details