vite-imagetools weekly downloads statistics
By JonasKruckenberg · npm · Vite plugins
Load and transform images using a toolbox of import directives!
vite-imagetools has 164,089 recorded weekly downloads on npm, a decrease of 38.2% over the past 30 days.
It ranks #390 of 2,255 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -51.5%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About vite-imagetools
vite-imagetools
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 • Usage • Options • Contributing • License
Install
Usage
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
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
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
| Name | Type |
| builtins | Record |
Returns
Record
extendTransforms
▸ Optional extendTransforms(builtins): TransformFactory\>[]
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
| Name | Type |
| builtins | TransformFactory\>[] |
Returns
TransformFactory\>[]
resolveConfigs
• Optional resolveConfigs: (entries: [string, string[]][], outputFormats: Record) => Record[]
Type declaration
▸ (entries, outputFormats): Record[]
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
| Name | Type | Description |
| entries | [string, string[]][] | The url parameter entries | | outputFormats | Record | - |
Returns
Record[]
An array of directive options
Contributing
Feel free to dive in! Open an issue or submit PRs! All information to get you started hacking on imagetools is in CONTRIBUTING.md!
License
MIT © Jonas Kruckenberg.
Description from the npm listing.
- resize-images
- responsive-images
- vite
- image
- vite-plugin
Where vite-imagetools sits in the listing
Each band is one page of 20. Weekly downloads on a log 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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.
Recent observations
Full history (121)Similar npm Vite plugins plugins
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 Oct 19, 2026. See the methodology.