@11ty/eleventy-plugin-img

A plugin to perform runtime image transformations.

Usage no npm install needed!

<script type="module">
  import 11tyEleventyPluginImg from 'https://cdn.skypack.dev/@11ty/eleventy-plugin-img';
</script>

README

eleventy-plugin-img

⚠️⚠️⚠️ This plugin has been temporarily superceded by the lower level utility eleventy-img. Please use that instead!

Installation

Available on npm.

npm install @11ty/eleventy-plugin-img --save-dev

Open up your Eleventy config file (probably .eleventy.js) and use addPlugin:

const pluginImg = require("@11ty/eleventy-plugin-img");
module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(pluginImg);
};

Read more about Eleventy plugins.