Giter Site home page Giter Site logo

Comments (2)

websanova avatar websanova commented on July 17, 2024

I've encountered this issue before and have not been able to find a
solution for it. What I do in this situation is just upload the image to
my own server and then set it.
On Jun 6, 2013 11:53 PM, "Oscar de Dios" [email protected] wrote:

Hi, thank you for your wonderful plugin.

I want to paint over images what have URL outside my web.

I use:
$("#wPaint").wPaint({
imageBg: url, // of another domain
});

It works I can paint over the image, but when I try to capture the image:
var imageData = $("#wPaint").wPaint("image");

I have the error:
Uncaught Error: SecurityError: DOM Exception 18 wPaint.js:644

It seems some related with cross domain because the URL is not in my
server.

Is there any way to solve this?

I do the same from a chrome extension and it works, but from a normal web
I can't.

Thank you.

Oscar.


Reply to this email directly or view it on GitHubhttps://github.com//issues/37
.

from wpaint.

OscarDeDios avatar OscarDeDios commented on July 17, 2024

Hi.
I found that to avoid this error message it exists the parameter "crossorigin"

I tried to put the line

myImage.crossorigin = "anonymous"

In setBgImage function.

And this error desappeared.... but it appears another one! :( Something related with crossorigin exception.

Finally I surrendered and now I upload the image before paint it. If someone find a solution share it here please!.

If you want to see my use of the plugin visit http://noteboardapp.com or the chrome extension https://chrome.google.com/webstore/detail/note-board/goficmpcgcnombioohjcgdhbaloknabb

I'm going to add a link to your web in my "powered by" section (now I only have tinymce plugin editor).

Regards.
Oscar.

from wpaint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.