'How to use fabricjs to make image inside clip?
There are three problems I would like to ask
- click "save as image" button, why the svg can't show the origin canvas(with clip)
- how to upload new image to replace the img01URL/img02URL
- 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 |
|---|
