Update thank you list

Add perf test for normalise
This commit is contained in:
Lovell Fuller 2015-04-19 21:09:19 +01:00
parent a0655806de
commit 6fc62d39c9
3 changed files with 18 additions and 2 deletions

View File

@ -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!

View File

@ -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",

View File

@ -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) {