Allow separate parameters for gamma encoding and decoding (#1439)

This commit is contained in:
Daiz
2018-11-11 11:15:38 +02:00
committed by Lovell Fuller
parent 1fa388370e
commit a48f8fbb61
8 changed files with 41 additions and 5 deletions

View File

@@ -134,6 +134,7 @@ when applying a gamma correction.
### Parameters
- `gamma` **[Number][1]** value between 1.0 and 3.0. (optional, default `2.2`)
- `gammaOut` ** [Number][1]** value between 1.0 and 3.0. (optional, defaults to same as `gamma`)
- Throws **[Error][5]** Invalid parameters

View File

@@ -14,6 +14,10 @@ Requires libvips v8.7.0.
[#1438](https://github.com/lovell/sharp/pull/1438)
[@Daiz](https://github.com/Daiz)
* Add support for different output gamma from what is used for scaling.
[#1439](https://github.com/lovell/sharp/pull/1439)
[@Daiz](https://github.com/Daiz)
#### v0.21.0 - 4<sup>th</sup> October 2018
* Deprecate the following resize-related functions: