This node module to resize the image file according to width and height. Also you can change the extension of a file. And also it is very lightweight.
npm install image-file-resize --save
Examples of how to use it
Parameter to send
Object need to send as a parameter and contain these data.
||Required||Contain browser file object.|
||Optional||Width of image required Default is 500|
||Optional||Height of image required Default is 300|
||Optional||Type of image required Default is jpeg|
You can convert image only in jpg, gif, bmp, png, jpeg.