img-convert
Simple crossplatform converter for images.
Requires ImageMagick installed and added to PATH.
Install
npm install img-convert --save
Syntax
imgPath targetPath params
-
imgPath
<string>
path to image file for conversion -
targetPath
<string>
path to converted image file -
params
<object>
contains execution parameters
Returns Promise
which fulfills to targetPath
.
Optionally you can specify the path for ImageMagick binary:
path = "path/to/converter"
Usage
const imgConvert =