image-resize-nn-loader
v0.1.0
Published
Webpack loader to rescale images using a nearest neighbor filter.
Readme
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
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)
