-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load buffer or arraybuffer in load
function
#164
Comments
Hi, @rahulbreezo . Good idea! A Pull Request would be much appreciated! Thank you! |
Thanks, will do that ASAP. |
@rahulbreezo is my work account.
like this
Can you suggest which approach should I pick? In my opinion I think I should go with the 2nd approach. |
I know it's a lot to ask, but could we try to make it work, so that it automatically determines the type of input and processes it accordingly. In other words, make it so the following work: load(arrayBuffer);
load(buffer); // NodeJS' buffer https://nodejs.org/api/buffer.html
load(url);
load(file); // https://developer.mozilla.org/en-US/docs/Web/API/File I sorta see load as a higher level functions that makes it easier for users to give anything to load and it works. Here's a few functions that might help.
Let me know what you think! |
I also wanted to do the same thing but then I checked But no problem, I will make it work as you said. |
Thank you! |
Is your feature request related to a problem? Please describe.
My tiff file is in the local system. I would like to load buffer or arraybuffer instead of giving url to
load
function.By looking at the code it seems pretty simple to implement this feature
I am running this code in node.
Describe the solution you'd like
I would like to add a PR to accept a buffer or array buffer as an input.
The text was updated successfully, but these errors were encountered: