Pixastic Doesn't Work Properly For Me, Why?
Solution 1:
For many manipulations, Pixastic has to swap the <img>
element with a <canvas>
element and perform per-pixel adjustments. A security exception is being thrown when the image is being manipulated using "blur"
, because the image source resides on different domain to the document.
You should also be aware that, due to security restrictions in the canvas element, Pixastic will only work with images that reside on the same host as the page you're using it on. [source]
The reason this doesn't happen with "blurfast"
is because it works differently: resizing the image over and over again by very small amounts. This, apparently, doesn't violate the security policies of the <canvas>
element.
The best approach is to stick to "blurfast"
— it is faster and more dynamic, after all. If you really want to use "blur"
then you'll have to ensure that all images are on the same domain as the current document.
Post a Comment for "Pixastic Doesn't Work Properly For Me, Why?"