mirror of
https://github.com/lovell/sharp.git
synced 2025-07-12 03:50:13 +02:00
Changelog and doc refresh for #1038
This commit is contained in:
parent
927b77700d
commit
0894145284
@ -94,6 +94,10 @@ then embed on a background of the exact `width` and `height` specified.
|
|||||||
If the background contains an alpha value then WebP and PNG format output images will
|
If the background contains an alpha value then WebP and PNG format output images will
|
||||||
contain an alpha channel, even when the input image does not.
|
contain an alpha channel, even when the input image does not.
|
||||||
|
|
||||||
|
**Parameters**
|
||||||
|
|
||||||
|
- `embed` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** A member of `sharp.gravity` to embed to an edge/corner. (optional, default `'centre'`)
|
||||||
|
|
||||||
**Examples**
|
**Examples**
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
@ -111,6 +115,8 @@ sharp('input.gif')
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- Throws **[Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error)** Invalid parameters
|
||||||
|
|
||||||
Returns **Sharp**
|
Returns **Sharp**
|
||||||
|
|
||||||
## max
|
## max
|
||||||
|
@ -30,6 +30,10 @@ Requires libvips v8.6.0.
|
|||||||
[#1028](https://github.com/lovell/sharp/issues/1028)
|
[#1028](https://github.com/lovell/sharp/issues/1028)
|
||||||
[@coffeebite](https://github.com/coffeebite)
|
[@coffeebite](https://github.com/coffeebite)
|
||||||
|
|
||||||
|
* Add support for gravity option to existing embed feature.
|
||||||
|
[#1038](https://github.com/lovell/sharp/pull/1038)
|
||||||
|
[@AzureByte](https://github.com/AzureByte)
|
||||||
|
|
||||||
* TIFF output: switch default predictor from 'none' to 'horizontal' to match libvips' behaviour.
|
* TIFF output: switch default predictor from 'none' to 'horizontal' to match libvips' behaviour.
|
||||||
|
|
||||||
### v0.18 - "*ridge*"
|
### v0.18 - "*ridge*"
|
||||||
|
@ -104,6 +104,7 @@ the help and code contributions of the following people:
|
|||||||
* [Matt Parrish](https://github.com/pbomb)
|
* [Matt Parrish](https://github.com/pbomb)
|
||||||
* [Matthew McEachen](https://github.com/mceachen)
|
* [Matthew McEachen](https://github.com/mceachen)
|
||||||
* [Jarda Kotěšovec](https://github.com/jardakotesovec)
|
* [Jarda Kotěšovec](https://github.com/jardakotesovec)
|
||||||
|
* [Kenric D'Souza](https://github.com/AzureByte)
|
||||||
|
|
||||||
Thank you!
|
Thank you!
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user