Pixastic与外部托管的图像 [英] Pixastic with externally hosted images
问题描述
我使用Vimeo API获取视频的缩略图,我想将效果应用到Pixastic。但是,在Chrome和Safari中,我收到错误消息:未捕获错误:SECURITY_ERR:DOM异常18。我已经尝试绘制外部图像到画布元素,然后应用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.
有人成功地使用Pixastic与外部图像在Webkit?
Is anyone successfully using Pixastic with external images in Webkit?
推荐答案
我碰到这个问题,只有我没有意识到我的问题是外部图像。从绝对相对链接更改为根相对链接为我工作。
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.
didn't work: http://domain.com/image.jpg
will work: /image.jpg
Pixastic无法工作由于画布安全限制而导致的外部图片。方法是创建一个代理来提供外部图像,就像它们是本地的一样,否则你必须复制图像。
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.
这篇关于Pixastic与外部托管的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!