Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot undo the first image until Blob Storage supports CORS #121

Open
jperl opened this issue Aug 6, 2012 · 0 comments
Open

Cannot undo the first image until Blob Storage supports CORS #121

jperl opened this issue Aug 6, 2012 · 0 comments

Comments

@jperl
Copy link
Member

jperl commented Aug 6, 2012

//http://www.mygreatwindowsazureidea.com/forums/34192-windows-azure-feature-voting/suggestions/2850796-support-cross-origin-resource-sharing-cors-via-a
// var img = imageUpload.cropBox.get(0);
// imageUpload.cropBox.on("load", function () {
// //if the image data was not set on the settings (on the first load), create it from the image
// //http://stackoverflow.com/questions/934012/get-image-data-in-javascript
// if (vm.get("settings.imageData") == null) {
// var canvas = document.createElement("canvas");
// canvas.width = img.width;
// canvas.height = img.height;
// var ctx = canvas.getContext("2d");
// ctx.drawImage(img, 0, 0);
// var data = canvas.toDataURL("image/png");
// data = data.replace(/^data:image/(png|jpg|gif);base64,/, "");
//
// vm.set("settings.imageData", data);
// vm.set("settings.imageFileName", "newImage.png");
// saveHistory.resetHistory();
// }
// });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant