'How can I do Image Upscaling (increase resolution) with Sharp?

I have a digital image for which I want to increase its resolution using Sharp. For now all I have is

let image = sharp("image_path").resize({width:1200, height:1200});

However, this seems to only increase the size but not the quality. How can I increase the resolution of an image using Sharp?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source