File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
# cropper.js
2
2
Copyright 2012 Oscar Key
3
+ Copyright 2015 Bruno Cabral
3
4
Licensed under GPL v3. See below and COPYING.
4
5
A simple image cropping library which uses pure Javascript and the ` <canvas> ` tag in order to crop images in the browser.
5
6
@@ -15,6 +16,10 @@ The example probably provides the best documentation, see `example.html`.
15
16
* src* : the url to the image, it is probably best to use a "data uri"
16
17
Cropper will display the image provided in the canvas, scaled to fit. If the image did not exist, it will crash.
17
18
19
+ ** cropper.fromDataUrl(image)**
20
+ * image* : The image as base64 to load Gram
21
+
22
+
18
23
** cropper.startCropping()**
19
24
* returns* : true if cropping started, false if no image present
20
25
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.
You can’t perform that action at this time.
0 commit comments