Comments (7)
Thanks -- this sounds like a useful feature. I added the crossOrigin
property to image object here. Would you be able to test if it works for you? Note that you will also need to set headers on the image source server to enable CORS.
from cropit.
Thank you. I still need to manage somehow to enable CORS, but what I've seen, you've done great!
from cropit.
The previous change actually didn't work. I updated the code in master in 21294f6 so that you can pass in a allowCrossOrigin
option to allow cross origin image source. See 21294f6?diff=split#diff-03b7960c2c30a90d475db93b5af86f7dR23
from cropit.
I kept getting the "tainted canvas" error until I went in and changed image.crossOrigin = "anonymous" to image.setAttribute('crossorigin', 'anonymous') . Then everything worked.
from cropit.
@skitterm Interesting. Could you share what browser you tested in where image.crossOrigin = "anonymous"
didn't work?
from cropit.
I was in Chrome 42 on windows.
from cropit.
I have the same problem in Chrome 46 on windows.
The crossOrigin=Anonymous didn't work for me.
from cropit.
Related Issues (20)
- IOS photo width problem after uploads
- Crashes in Chrome if 32-bit OS
- Is there an onDrop event in this bundle?
- Watermark addition after the crop
- Resize the crop box not image
- Demo and Documentation doesnt seem to follow HOT 2
- Closed
- How do I use uploaded image in newly generated cropit previews? HOT 1
- Image size override by global css
- Image size is override by global css HOT 1
- Crop it plugin not accepting few dataUri HOT 1
- CSS Loader stuck during onImageLoading
- Cors
- Not Working With all Images HOT 1
- Broken demo
- Keep Image Position Center After Rotate
- solution
- add flip / flop feature in cropit library
- cropit Cannot read property 'push' of undefined HOT 1
- How I can download original size image
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 cropit.