Skip to content

Conversation

@LearningNerd
Copy link

fix #52

Just added a conditional check to make sure pixel values are numbers -- if not, it throws an error with a suggestion to make sure to pass in ImageData.data and not an ImageData object itself. (Seems like an easy mistake to make for someone new to the Canvas API and new to this library.)

And offer suggestion to pass in ImageData object's data property, not an ImageData object itself
@mourner mourner closed this in 58002be Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should give error when given input data that contains undefined values

1 participant