mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Add normalize() for simple histogram stretching
Available as normalize() or normalise(). Normalization takes place in LAB place and thus should not change any colors. Existing alpha channels are preserved untouched by normalization.
This commit is contained in:
@@ -486,6 +486,10 @@ This is a linear operation. If the input image is in a non-linear colour space s
|
||||
|
||||
The output image will still be web-friendly sRGB and contain three (identical) channels.
|
||||
|
||||
#### normalize() / normalise()
|
||||
|
||||
Stretch histogram to cover full dynamic range before output to enhance contrast.
|
||||
|
||||
### Output options
|
||||
|
||||
#### jpeg()
|
||||
|
||||
Reference in New Issue
Block a user