dist/ng-image-upload-template-in.js
function onLoad(event) {
        var img = new Image();
        img.onload = utils.getDimensions(canvas, vm.$storage);
        img.src = event.target.result;
      }
function onLoad(event) {
        var img = new Image();
        img.onload = utils.getDimensions(canvas, vm.$storage);
        img.src = event.target.result;
      }
function onLoad ( event ) { var img = new Image ( ) ; img . onload = utils . getDimensions ( canvas , vm . $storage ) ; img . src = event . target . result ; }
Wait for the reader to be loaded to get the right img.src
Wait for the reader to be loaded to get the right img . src