im.resize({ srcPath: path, dstPath: newPath, filter: 'lanczos', strip: false, width: xsize }, function(err, stdout, stderr){ fs.unlink(path,function(err){ req.files.file.path = newPath; next(); }) });
counter += 1; var opts = options.imageVersions[version]; imageMagick.resize({ width: opts.width, height: opts.height,