LazarSoft / jsqrcode

Javascript QRCode scanner
http://www.webqr.com
Apache License 2.0
3.99k stars 1.16k forks source link

I get always a "Cross domain image reading not supported in your browser!" error message #2

Open ghost opened 12 years ago

ghost commented 12 years ago

Hi, if I try qr. decode("qr.png") (the qr image and the source are in the same folder), I'll receive an error message like: "Cross domain image reading not supported in your browser! Save it to your computer then drag and drop the file!".

Do you know a solution for my problem or a fix for my usage?!

Thanks!

LazarSoft commented 12 years ago

Hi,

Sorry for the late answer.

You get this error message when the CanvasContext.getImageData function fails. Try it through a web server (not directly by opening the html file in a browser), maybe some security setting prevents image editing in your environment.

Best Regards, Laszlo

On Fri, Oct 12, 2012 at 1:47 PM, Tobias notifications@github.com wrote:

Hi, if I try qr. decode("qr.png") (the qr image and the source are in the same folder), I'll receive an error message like: "Cross domain image reading not supported in your browser! Save it to your computer then drag and drop the file!".

Do you know a solution for my problem or a fix for my usage?!

Thanks!

— Reply to this email directly or view it on GitHubhttps://github.com/LazarSoft/jsqrcode/issues/2.

ghost commented 12 years ago

Hi, no problem. The error was absolutly my fault! sorry for the inconvience.

DeadlySystem commented 9 years ago

Then go ahead and close the issue...