Ah i wasn’t aware of that. Chrome has a limit of 32767px so my image file would be too big. Is there another way to store image pixels in an array without going through a canvas context?
An alternative would be to divide an image into 4 parts. Then i load each of them into an array via an offscreencanvas (i don’t need a normal canvas) and have the overall image in four arrays. But an array with all the pixels would be elegant. That would save me the case distinction when I have to switch between the 4 arrays
Thanks anyway. The information that there is a limit saved me a lot of time and I then i don’t waste time of racking my brain about why it doesn’t work with 40k pixelsize images.