Skip to content

Openslide: select best input level based on output dimensions #2222

@TAYTS

Description

@TAYTS

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))

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions