具有外部托管图像的 Pixastic
我正在使用 Vimeo API 获取视频缩略图,我想使用 Pixastic 将效果应用到这些视频。但是,在 Chrome 和 Safari 中,我收到错误消息:“未捕获的错误:SECURITY_ERR:DOM 异常 18”。我尝试将外部图像绘制到画布元素,然后将 Pixastic 效果应用到这些画布元素,但我收到相同的错误消息。
有人在 Webkit 中成功使用 Pixastic 与外部图像吗?
I am using the Vimeo API to get thumbnails of videos which I would like to apply effects to using Pixastic. However, in Chrome and Safari I get the error message: "Uncaught Error: SECURITY_ERR: DOM Exception 18". I have tried drawing the external images to canvas elements and then applying the Pixastic effects to those canvas elements but I get the same error message.
Is anyone successfully using Pixastic with external images in Webkit?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也遇到了这个问题,只是我没有意识到我的问题是外部图像。从绝对链接更改为根相对链接对我有用。
由于画布安全限制,Pixastic 无法处理外部图像。解决这个问题的方法是创建一个代理来提供外部图像,就好像它们是本地图像一样,否则您将必须复制图像。
I ran into this problem too, only I didn't realize my problem was external images. Changing from absolute to root relative links worked for me.
Pixastic can't work on external images due to a canvas security limitation. The way around this is to either create a proxy to serve the external images as if they were local, or you will have to copy the images.