File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ Example usage:
18
18
.write("lena-small-bw.png") // save again
19
19
.crop(80, 100, 80, 50) // crop
20
20
.write("lena-small-bw-cropped.png"); // save again
21
- });;
21
+ });
22
22
23
23
## Methods ##
24
24
25
- The Jimp constructor takes two arugments, the path to a JPEG or PNG image and an optional call back when the image is parsed:
25
+ The Jimp constructor takes two arugments, the path to a JPEG or PNG image and an optional call back for when the image is parsed:
26
26
27
27
var image = new Jimp("./path/to/image.jpg", function () {
28
28
// ready
@@ -37,6 +37,8 @@ Once the callback has fired the following methods can be called on the image:
37
37
image.opacity( f ); // apply an opacity of 0-1 to the image
38
38
image.resize( w, h ); // resize the image
39
39
image.scale( f ); // scale the image by the factor f
40
+ image.blur( r ); // fast blur the image by r pixels
41
+ image.gaussian( r ); // Gaussian blur the image by r pixels (VERY slow)
40
42
41
43
(Contributions of more methods are welcome!)
42
44
You can’t perform that action at this time.
0 commit comments