WebP & AVIF Image Optimizer

EmDash plugin that converts uploaded JPEG/PNG images to WebP or AVIF, keeping the originals. Converts on upload and in bulk.

Plugin

WebP & AVIF Image Optimizer

EmDash plugin that converts uploaded JPEG/PNG images to WebP or AVIF, keeping the originals. Converts on upload and in bulk.

  • Category: Media
  • Status: available
  • Version: 0.1.2
  • Price: Unknown
  • Source: npm package
  • Install method: Native npm integration
  • Verified: 2026-11-01
  • Compatibility: EmDash >=1.2.0
  • Maintainer: Yamadori

EmDash plugin that converts uploaded JPEG/PNG images to WebP or AVIF, keeping the originals. Converts on upload and in bulk.

Installation

Install the package from npm:

npm install emdash-plugin-image-optimizer

Register the plugin in your Astro config:

import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { imageOptimizerPlugin } from "emdash-plugin-image-optimizer";

export default defineConfig({
  integrations: [
    emdash({
      // ...
      plugins: [imageOptimizerPlugin()],
    }),
  ],
});

Details