photopea / UTIF.js

Fast and advanced TIFF decoder
MIT License
424 stars 87 forks source link

Extract function to render the tiff image #101

Closed na-ka-na closed 3 years ago

na-ka-na commented 3 years ago

We're using a UI library to preview images, but don't have access to the img element.

Verified that this approach works for us if we use the UTIF.renderIMG function

photopea commented 3 years ago

That is a great idea! I did it in my own pull request, it is called UTIF.bufferToURI(buff) :)

na-ka-na commented 3 years ago

That is a great idea! I did it in my own pull request, it is called UTIF.bufferToURI(buff) :)

Cool! any idea when it'll be part of a release?

photopea commented 3 years ago

It is already there, I released it before writing my comment. Use UTIF from here, not from NPM.

TheOptik commented 3 years ago

Are there any plans on releasing this to NPM?

photopea commented 3 years ago

I never used NPM. Could you release it on NPM?