Skip to content
PluginStats

vite-imagetools weekly downloads statistics

By JonasKruckenberg · npm · Vite plugins

Load and transform images using a toolbox of import directives!

View on npm Fresh · Dec 6, 2026

vite-imagetools has 605,436 recorded weekly downloads on npm, an increase of 16.9% over the past 30 days, ranking #348 of 3,247 tracked listings.

Weekly downloads
605,436
Official API · Dec 5, 2026
7-day growth
+28.6%
+134.6K weekly downloads
30-day growth
+16.9%
+87.5K weekly downloads
90-day growth
+140%
+353.7K weekly downloads
Rank
#348
▲ 42 in 7 days

About vite-imagetools

vite-imagetools

<!-- badges -->

npm (latest) standard-readme compliant codecov

A toolbox of import directives for Vite that can transform your image at compile-time. All of the image transformations are powered by sharp.

Features

  • 🚀 Output modern formats
  • 🖼 Resize Images
  • 🔗 Easy Srcset generation
  • ⚡️ Fast in development mode
  • 🔒 Remove Image Metadata
  • 🧩 Extensible

Read the docs to learn more!

Table of Contents

Install

npm install --save-dev vite-imagetools

Usage

import { defineConfig } from 'vite'
import { imagetools } from 'vite-imagetools'

export default defineConfig({
  plugins: [imagetools()]
})
import Image from 'example.jpg?w=400&h=300&format=webp'

You can also import a directory of images using Vite's import.meta.glob with its query option.

Options

defaultDirectives

• Optional defaultDirectives: URLSearchParams | (url: URL) => URLSearchParams

This option allows you to specify directives that should be applied by default to every image. You can also provide a function, in which case the function gets passed the asset ID and should return an object of directives. This can be used to define all sorts of shorthands or presets.

example

import { defineConfig } from 'vite'
import { imagetools } from 'vite-imagetools'

export default defineConfig({
  plugins: [
    imagetools({
      defaultDirectives: (url) => {
        if (url.searchParams.has('spotify')) {
          return new URLSearchParams({
            tint: 'ffaa22'
          })
        }
        return new URLSearchParams()
      }
    })
  ]
})

exclude

• exclude: string | RegExp | (string | RegExp)[]

What paths to exclude when processing images. This defaults to the public dir to mirror Vite's behavior.

default 'public\/**\/*'


include

• include: string | RegExp | (string | RegExp)[]

Which paths to include when processing images.

default /^[^?]+\.(heif|avif|jpeg|jpg|png|tiff|webp|gif)(\?.*)?$/


removeMetadata

• removeMetadata: boolean

Wether to remove potentially private metadata from the image, such as exif tags etc.

default true


extendOutputFormats

▸ Optional extendOutputFormats(builtins): Record<string, OutputFormat>

You can use this option to extend the builtin list of output formats. This list will be merged with the builtin output formats before determining the format to use.

default []

Parameters
NameType
builtinsRecord<string, OutputFormat>
Returns

Record<string, OutputFormat>


extendTransforms

▸ Optional extendTransforms(builtins): TransformFactory<Record<string, unknown>>[]

You can use this option to extend the builtin list of import transforms. This list will be merged with the builtin transforms before applying them to the input image.

default []

Parameters
NameType
builtinsTransformFactory<Record<string, unknown>>[]
Returns

TransformFactory<Record<string, unknown>>[]


resolveConfigs

• Optional resolveConfigs: (entries: [string, string[]][], outputFormats: Record<string, OutputFormat>) => Record<string, string | string[]>[]

Type declaration

▸ (entries, outputFormats): Record<string, string | string[]>[]

This function builds up all possible combinations the given entries can be combined an returns it as an array of objects that can be given to a the transforms.

Parameters
NameTypeDescription
entries[string, string[]][]The url parameter entries
outputFormatsRecord<string, OutputFormat>-
Returns

Record<string, string | string[]>[]

An array of directive options

Contributing…

Description from the npm listing.

  • resize-images
  • responsive-images
  • vite
  • image
  • vite-plugin

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-imagetools weekly downloads on npm, last 90 days: 605,436 weekly downloads as of Dec 5, 2026, +140% over 90 days.vite-imagetoolsWeekly downloads on npm · Last 90 days605,436downloads / week+140% over 90 days0100K200K300K400K500K600K700KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-imagetools weekly downloads on npm, last 90 days: 605,436 weekly downloads as of Dec 5, 2026, +140% over 90 days.

7/30/90-day growth

vite-imagetools weekly downloads growth on npm: +28.6% over 7 days, +16.9% over 30 days, +140% over 90 days.vite-imagetoolsWeekly downloads growth on npm605,436downloads / week now7-day growth+134,584 weekly downloads+28.6%30-day growth+87,499 weekly downloads+16.9%90-day growth+353,657 weekly downloads+140%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-imagetools weekly downloads growth on npm: +28.6% over 7 days, +16.9% over 30 days, +140% over 90 days.

Ranking history

vite-imagetools npm ranking history: currently #348 (by weekly downloads).vite-imagetoolsnpm ranking · by weekly downloads · Last 90 days#348current rank#340#350#360#370#380#390#400#410Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-imagetools npm ranking history: currently #348 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 18, #8 (overall #348)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 3, #8 (overall #48)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for vite-imagetools
Date (UTC)Weekly downloadsChange vs. previous
605,436+25.8K
579,632+38K
541,664+41.9K
499,742+13.1K
486,673+13.1K
473,542+4K
469,561-1.3K
470,852-732
471,584-16.5K
488,075-23.1K
511,209-14.8K
526,040-2.2K
528,243+5K
523,206—

Similar npm Vite plugins plugins

All 20 vite-imagetools alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/vite-imagetools. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.