title: Fabric Js - Is it possible to auto scale a image object to the canvas?
body: <p>We currently upload an image via the below code: </p>
  
  <pre><code>        reader.onload = function (event) {
              fabric.Image.fromURL(event.target.result, function (img) {
                  whiteboardService.uploadImageToCanvas(img);
              });
          }
  </code></pre>
  
  <p>and... </p>
  
  <pre><code>    service.uploadImageToCanvas = function (image) {
          service.canvas.add(image);
  
          image.id = service.getUniqueId();
          service.objectMap[image.id] = image;
  
          var data = {
              image: image,
              id: image.id
          };
  
          signalService.sendMessage(service.recipient, data);
      };
  </code></pre>
  
  <p>If the image is too large, bigger than our fixed width and height of the canvas would it be possible for that image to be scaled down automatically to fit into the fixed width and height of the canvas? </p>
  
  <p>I should point out that I am using Angular.js as well</p>
  
  <p>ta</p>