Skip to content

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

Description

@jperl

//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();
// }
// });

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions