1.0.0 • Published 8 years ago
magick-loader v1.0.0
magick-loader
A webpack loader for processing images with GraphicsMagick.
Installation
- Install GraphicsMagick
npm install --save-dev magick-loader
- If the loader doesn't work, try installing ImageMagick
Usage
require('file!img!magick?-resize 1920x1080!./image.jpg');
The query string (-resize 1920x1080
in the example) will be passed to GraphicsMagick as command line parameters (gm's .out()
method is used for this).
1.0.0
8 years ago