I am using imageMagic module to crop image here is my code:-
var imageMagick = require('imagemagick');
imageMagick.resize({
width: 50,
height: 50,
strip: false,
srcPath: options.uploadDir + '/' + fileInfo.name,
dstPath: options.uploadDir + '/' + version + '/' + fileInfo.name
}, finish);
it is working fine and crop the image but problem is when I set the size 50x50 but when image cropped I got the image size 50x38. I don't know what is the issue. Please help me to solve this issue. Thanks