Installation
To install the astro-imagetools package, run the following command:
npm install astro-imagetools
# yarn
yarn add astro-imagetools
# pnpm
pnpm add astro-imagetoolsRegister the Vite plugin provided by Astro ImageTools in your astro.config.js file:
import astroImagePlugin from "astro-imagetools/plugin";
export default {
vite: {
plugins: [astroImagePlugin],
},
};Then, you’ll be able to use the components and APIs inside your Astro pages and components. To know more about how to use the components and APIs, please check out the Usage documentation.