public/designer/old-designerControl.js
// transform cropper dataURI output to a Blob which Dropzone accepts
transform cropper dataURI output to a Blob which Dropzone accepts
transform cropper dataURI output to a Blob which Dropzone accepts
function dataURItoBlob(dataURI) {
                  var byteString = atob(dataURI.split(',')[1]);
                  var ab = new ArrayBuffer(byteString.length);
                  var ia = new Uint8Array(ab);
                  for (var i = 0; i < byteString.length; i++) {
                      ia[i] = byteString.charCodeAt(i);
                  }
                  return new Blob([ab], { type: 'image/jpeg' });
              }
function dataURItoBlob ( dataURI ) { var byteString = atob ( dataURI . split ( ',' ) [ 1 ] ) ; var ab = new ArrayBuffer ( byteString . length ) ; var ia = new Uint8Array ( ab ) ; for ( var i = 0 ; i < byteString . length ; i ++ ) { ia [ i ] = byteString . charCodeAt ( i ) ; } return new Blob ( [ ab ] , { type : 'image/jpeg' } ) ; }
transform cropper dataURI output to a Blob which Dropzone accepts
transform cropper dataURI output to a Blob which Dropzone accepts