Skip to content

Commit

Permalink
add blur examples
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-moran committed Sep 14, 2014
1 parent aa3bd3e commit a797d39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ Example usage:
.write("lena-small-bw.png") // save again
.crop(80, 100, 80, 50) // crop
.write("lena-small-bw-cropped.png"); // save again
});;
});

## Methods ##

The Jimp constructor takes two arugments, the path to a JPEG or PNG image and an optional call back when the image is parsed:
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:

var image = new Jimp("./path/to/image.jpg", function () {
// ready
Expand All @@ -37,6 +37,8 @@ Once the callback has fired the following methods can be called on the image:
image.opacity( f ); // apply an opacity of 0-1 to the image
image.resize( w, h ); // resize the image
image.scale( f ); // scale the image by the factor f
image.blur( r ); // fast blur the image by r pixels
image.gaussian( r ); // Gaussian blur the image by r pixels (VERY slow)

(Contributions of more methods are welcome!)

Expand Down

0 comments on commit a797d39

Please sign in to comment.