diff --git a/README.md b/README.md index aead5951..314eeee4 100755 --- a/README.md +++ b/README.md @@ -488,7 +488,7 @@ The output image will still be web-friendly sRGB and contain three (identical) c #### normalize() / normalise() -Stretch histogram to cover full dynamic range before output to enhance contrast. +Enhance output image contrast by stretching its luminance to cover the full dynamic range. This typically reduces performance by 30%. ### Output options @@ -760,6 +760,10 @@ This module would never have been possible without the help and code contributio * [Brandon Aaron](https://github.com/brandonaaron) * [Andreas Lind](https://github.com/papandreou) * [Maurus Cuelenaere](https://github.com/mcuelenaere) +* [Linus Unnebäck](https://github.com/LinusU) +* [Victor Mateevitsi](https://github.com/mvictoras) +* [Alaric Holloway](https://github.com/skedastik) +* [Bernhard K. Weisshuhn](https://github.com/bkw) Thank you! diff --git a/package.json b/package.json index 3cf06845..73188b99 100755 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ }, "devDependencies": { "mocha": "^2.1.0", - "mocha-jshint": "^1.0.0", + "mocha-jshint": "^2.1.1", "istanbul": "^0.3.6", "coveralls": "^2.11.2", "node-cpplint": "^0.4.0", diff --git a/test/bench/perf.js b/test/bench/perf.js index c80a162e..5dce9c6f 100755 --- a/test/bench/perf.js +++ b/test/bench/perf.js @@ -311,6 +311,18 @@ async.series({ } }); } + }).add('sharp-normalise', { + defer: true, + fn: function(deferred) { + sharp(inputJpgBuffer).resize(width, height).normalise().toBuffer(function(err, buffer) { + if (err) { + throw err; + } else { + assert.notStrictEqual(null, buffer); + deferred.resolve(); + } + }); + } }).add('sharp-greyscale', { defer: true, fn: function(deferred) {