image-resize-nn-loader

0.1.0 • Public • Published

image-resize-nn-loader

Scale up images while loading them through webpack. Uses nearest-neighbor scaling. Very specific purpose but maybe others will find it useful.

Usage

Documentation: Using loaders

var url = require("file!image-resize-nn-loader?resize=4!./file.png");
// => emits file.png as file in the output directory and returns the public url
// => returns i. e. "/public-path/0dcbbaa701328a3c262cfd45869e351f.png"
// => the image will be resized up by a factor of 4 while preserving its pixeliness.

License

MIT (http://www.opensource.org/licenses/mit-license.php)

Package Sidebar

Install

npm i image-resize-nn-loader

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • drhayes