本文介绍了canvas.getImageData:“未捕获错误:SECURITY_ERR:DOM异常18”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我读过,从不同的网域载入的图片无法使用getImageData。
I've read that it is not possible to use getImageData on an image loaded from a different domain. Any trick to overcome this?
感谢
推荐答案
您的网域上的代理脚本,用于转发来自其他域的图片。
You can make a proxy script on your domain that forwards the image from the other domain.
这篇关于canvas.getImageData:“未捕获错误:SECURITY_ERR:DOM异常18”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!