We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug NumPy array conversion to, e.g., Image silently accepts array with types other than uint8.
Image
To Reproduce
import skia import numpy as np array = np.zeros((100, 100), dtype=np.float32) image = skia.Image(array)
Expected behavior Should throw an error.
Desktop (please complete the following information):
Additional context n/a
The text was updated successfully, but these errors were encountered:
Resolved by #70
Sorry, something went wrong.
Hi @kyamagu, is this to say that only an array with uint8 datatype is supported?
uint8
@Correct-Syntax See the available color types in the documentation.
@kyamagu thank you.
No branches or pull requests
Describe the bug
NumPy array conversion to, e.g.,
Image
silently accepts array with types other than uint8.To Reproduce
Expected behavior
Should throw an error.
Desktop (please complete the following information):
Additional context
n/a
The text was updated successfully, but these errors were encountered: