问题
How to get all pixel info (RGB) of an image using javascript. I can't use CANVAS.
Just reading an image from local disk and parse the pixels. I don't want to render img on the page.
Thanks.
回答1:
That is not possible. Javascript cannot read plain binary data from files on local disk (for obvious security reasons).
来源:https://stackoverflow.com/questions/4354075/how-read-pixel-of-an-image-without-canvas