Skip to content

Commit 06f7cea

Browse files
author
Bruno Cabral
committedMar 2, 2015
Update README.md
1 parent 2717de4 commit 06f7cea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎README.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# cropper.js
22
Copyright 2012 Oscar Key
3+
Copyright 2015 Bruno Cabral
34
Licensed under GPL v3. See below and COPYING.
45
A simple image cropping library which uses pure Javascript and the `<canvas>` tag in order to crop images in the browser.
56

@@ -15,6 +16,10 @@ The example probably provides the best documentation, see `example.html`.
1516
*src*: the url to the image, it is probably best to use a "data uri"
1617
Cropper will display the image provided in the canvas, scaled to fit. If the image did not exist, it will crash.
1718

19+
**cropper.fromDataUrl(image)**
20+
*image*: The image as base64 to load Gram
21+
22+
1823
**cropper.startCropping()**
1924
*returns*: true if cropping started, false if no image present
2025
This will display the area selector thus allowing the user to select which bit of the image to keep. It also sets a restore point.

0 commit comments

Comments
 (0)
Please sign in to comment.