I was wondering about image.src and how it is stored in browsers.
Does it store an array of pixels ready to display on screen? And then that got me wondering why can we not access this pixel data without drawing to a canvas and getting the pixel information that way?
The image data must be stored in memory for the browser, so why can we not directly enquire a pixel of the image any other way than to draw it first?
There is no standard that defines how images are maintained by the browser, and because browsers are purposely designed to not let you get at their internal implementations, you really can’t do what you’re requesting…