gpt4 book ai didi

jquery - 如何改变 Pixastic jquery 的对比度?

转载 作者:行者123 更新时间:2023-12-01 08:20:20 27 4
gpt4 key购买 nike

我尝试使用 Pixastic 更改图片的对比度,但它给我一个错误告诉我

Error: uncaught exception: [Exception... "Security error" code:"1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location:"file:///C:/Users/maydin/Desktop/pixastic/pixastic.custom.js Line:49"]

function lowerBrightness(){
$('#tok').pixastic("brightness", {brightness:50});
}

有人以前用过这个亮度功能吗?我该如何解决这个问题?

$('#tok').pixastic("blurfast", {amount:0.8});     <- this one works fine  
$('#tok').pixastic("rotate", {angle:+90}); <- this one works fine as well

我在文档中找不到任何信息
http://www.pixastic.com/lib/docs/actions/brightness/

最佳答案

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.

来自 Pixastic Documentation

更多信息:

Pixastic doesn't work properly for me, why?

关于jquery - 如何改变 Pixastic jquery 的对比度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7726310/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com