I am trying to generate thumbnail file from a large openslide format image(~2Gb), but the resize takes forever to run, not sure if I did it wrongly. Below are my code for trying to generate the thumbnails.
I manage to use vipsthumbnail to generate the thumbnail very fast(instant) and I am using the global libvips.
sharp('test.scn', {limitInputPixels: false})
.resize(500, 500)
.png()
.toFile('output.png')
.then(info => console.log(info))
.catch(err => console.log(err))