how read pixel of an image without canvas

ぃ、小莉子 提交于 2020-01-07 04:20:54

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!