-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support image data as a numpy array #4
Comments
My workaround is to save the NumPy array as a temporary image and use that. A bit ugly, but it works. But I support the request to the author to suggest a better way to handle this case |
I'm not sure what exactly you mean by "a temporary image" but converting it to a PIL image and then passing that in should work well. I think I would prefer that over trying to support any numpy array, since it might not always be straightforward to support this generically (e.g. if the array needs reshaped from N to X*Y before it can be read as an image). If you have a case where this doesn't work well, please let me know. |
i could only write the image file from PIL buffer and read it again in another page |
I have a use case where my data is in memory in a numpy array. It would be great to be able to support this use case.
The text was updated successfully, but these errors were encountered: