I've created a pretty simple javascript function to go over every pixel in a canvas and push it into an array. This is for eventually storing the data in mysql for later use. However, if the canvas is very big, say 600x400 (240,000 pixels), the script takes far too long and the browser kills it.
Is there another, faster way of doing this? Right now the only solution I can think of is to split the pixel data into chunks and run my little script on each chunk individually.
Any feedback would be super helpful, thanks!













