title: Resize image with Angular-base-64
body: <p>I'm new to developing with AngularJs and I have a function where converting images to base 64 using the Angular-Base64-Upload, I'd like to know how to resize images to a standard size of about 500px.</p>
  
  <pre><code>   $scope.upload = function (file) {
    Upload.base64DataUrl(file).then(
      function (url){
        $scope.data['usu_foto'] = url;
      });
  };
  </code></pre>