Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Node.js bindings #204

Open
xmkevin opened this Issue May 1, 2017 · 7 comments

Comments

Projects
None yet
3 participants

xmkevin commented May 1, 2017

Hi, is there any plan for developing an node bindings ?

thanks.

Owner

bgilbert commented May 2, 2017

Not that I know of. If you or anyone else would like to do it, I'm sure the community would be interested in using them! I'd be happy to answer implementation-related questions on the openslide-users mailing list.

xmkevin commented May 3, 2017

Thanks. I have subscribed the mailing list. Since I don't familiar with c++, I will try my best to implement one.

xmkevin closed this May 3, 2017

Owner

bgilbert commented May 4, 2017

Reopening to keep a record of the request.

bgilbert reopened this May 4, 2017

bgilbert changed the title from Feature request-node bindings ? to Node.js bindings May 4, 2017

jcupitt commented May 15, 2017 edited

I don't know if it would fit your needs, but sharp supports openslide file read:

https://github.com/lovell/sharp
http://sharp.dimens.io/en/stable/

It'll let you pull out areas from specific layers and render to jpg/png/whatever, in a buffer, stream or file. It has a nice, fluent, promise-based API and is well supported on Linux, macOS and Windows. It's just npm install sharp to get started, though you may need to enable openslide support, depending on your platform.

It includes things like pyramid generation for seadragon/zoomify/gmaps too, which can be useful.

xmkevin commented May 20, 2017

@jcupitt Thanks. What we need is to read the existing vendor independent file formats, sharp doesn't support this.

jcupitt commented May 21, 2017

@xmkevin, sharp can read all the formats that openslide can read, you just need to enable openslide support. There are some notes in the README.

xmkevin commented May 22, 2017 edited

@jcupitt Thank you very much. I will try sharp. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment