'How to use fabricjs to make image inside clip?

There are three problems I would like to ask

  1. click "save as image" button, why the svg can't show the origin canvas(with clip)
  2. how to upload new image to replace the img01URL/img02URL
  3. if it possible to make image cover inside clip

here is my demo

 <input id="uploader" type="file" />
 <canvas id="canvas" width="400" height="400"></canvas>
 <input id="b" ng-click="fabric.download('myCanvas')" type="button" value="Save as Image" />
 <div id="image"></div>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source