Skip to content

Commit

Permalink
docs: improve demo code for getCroppedCanvas method
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Nov 5, 2022
1 parent f1bd5ab commit dfba39d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -851,10 +851,16 @@ cropper.getCroppedCanvas();
cropper.getCroppedCanvas({
width: 160,
height: 90,
});

cropper.getCroppedCanvas({
minWidth: 256,
minHeight: 256,
maxWidth: 4096,
maxHeight: 4096,
});

cropper.getCroppedCanvas({
fillColor: '#fff',
imageSmoothingEnabled: false,
imageSmoothingQuality: 'high',
Expand Down

0 comments on commit dfba39d

Please sign in to comment.