I'm using jimp to resize an image in node.js, I'm successfully able to degrade the image quality, but a bit confused how to get the path of new image
Jimp.read("test.jpg", function (err, test) {
if (err) throw err;
test.resize(256, 256)
.quality(50)
.write("new.jpg");
});