Skip to content

Commit a797d39

Browse files
committedSep 14, 2014
add blur examples
1 parent aa3bd3e commit a797d39

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Example usage:
1818
.write("lena-small-bw.png") // save again
1919
.crop(80, 100, 80, 50) // crop
2020
.write("lena-small-bw-cropped.png"); // save again
21-
});;
21+
});
2222

2323
## Methods ##
2424

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:
2626

2727
var image = new Jimp("./path/to/image.jpg", function () {
2828
// ready
@@ -37,6 +37,8 @@ Once the callback has fired the following methods can be called on the image:
3737
image.opacity( f ); // apply an opacity of 0-1 to the image
3838
image.resize( w, h ); // resize the image
3939
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)
4042

4143
(Contributions of more methods are welcome!)
4244

0 commit comments

Comments
 (0)
Please sign in to comment.