Comments (2)
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:644It 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.
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)
- Default foreground when loading a tool? Possible?
- Hide Load Image buttons HOT 1
- Need one extra shape
- wPaint.menu.main min and full scripts differ
- Remove menu HOT 1
- An error appearing on touchscreen Chromebooks
- Some time OnShapeUp event not call
- how to rotate image horizontal
- Please, ADD a Zoom Function
- Menu items won't load on a second wPaint Instance
- Resizing Canvas HOT 1
- Can we have only text plugin for simple canvas with out using wPaint lib
- is dragging image available?
- Tool single click does not work on ipad
- Callback in not working
- can we use complete website a canvas to draw ?
- Undo Redo not working with jquery 3x HOT 2
- Destroy or reinitialise
- Is there a way to set the lineWidth programmatically?
- Image background and text color is same
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wpaint.