1

I try to change the contrast of my picture using Pixastic but it gives me an error telling me that

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});  
    }   

Is there anyone who used this brightness feature before? How can I fix this?

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

I cant find any information in the documentation
http://www.pixastic.com/lib/docs/actions/brightness/

Liam
  • 27,717
  • 28
  • 128
  • 190
wallace740
  • 1,380
  • 5
  • 19
  • 36
  • possible duplicate of [Pixastic doesn't work properly for me, why?](http://stackoverflow.com/questions/5459504/pixastic-doesnt-work-properly-for-me-why) – balexandre Oct 11 '11 at 13:16

1 Answers1

3

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.

from Pixastic Documentation

more here:

Pixastic doesn't work properly for me, why?

Community
  • 1
  • 1
balexandre
  • 73,608
  • 45
  • 233
  • 342
  • I received the same answer from the developers. But is this line OK? $('#tok').pixastic("brightness", {brightness:50}); I will try it in webserver later on – wallace740 Oct 11 '11 at 13:28
  • It works in the server :) But in IE, only 1 time.Each time I need to first Reset than do another pixastic action :( – wallace740 Oct 11 '11 at 14:33