mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Update thank you list
Add perf test for normalise
This commit is contained in:
parent
a0655806de
commit
6fc62d39c9
@ -488,7 +488,7 @@ The output image will still be web-friendly sRGB and contain three (identical) c
|
|||||||
|
|
||||||
#### normalize() / normalise()
|
#### 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
|
### 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)
|
* [Brandon Aaron](https://github.com/brandonaaron)
|
||||||
* [Andreas Lind](https://github.com/papandreou)
|
* [Andreas Lind](https://github.com/papandreou)
|
||||||
* [Maurus Cuelenaere](https://github.com/mcuelenaere)
|
* [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!
|
Thank you!
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"mocha": "^2.1.0",
|
"mocha": "^2.1.0",
|
||||||
"mocha-jshint": "^1.0.0",
|
"mocha-jshint": "^2.1.1",
|
||||||
"istanbul": "^0.3.6",
|
"istanbul": "^0.3.6",
|
||||||
"coveralls": "^2.11.2",
|
"coveralls": "^2.11.2",
|
||||||
"node-cpplint": "^0.4.0",
|
"node-cpplint": "^0.4.0",
|
||||||
|
@ -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', {
|
}).add('sharp-greyscale', {
|
||||||
defer: true,
|
defer: true,
|
||||||
fn: function(deferred) {
|
fn: function(deferred) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user