Skip to content

Commit

Permalink
Changelog and doc refresh for #1038
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Dec 12, 2017
1 parent 927b777 commit 0894145
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/api-resize.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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**

```javascript
Expand All @@ -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**

## max
Expand Down
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Requires libvips v8.6.0.
[#1028](https://github.com/lovell/sharp/issues/1028)
[@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.

### v0.18 - "*ridge*"
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ the help and code contributions of the following people:
* [Matt Parrish](https://github.com/pbomb)
* [Matthew McEachen](https://github.com/mceachen)
* [Jarda Kotěšovec](https://github.com/jardakotesovec)
* [Kenric D'Souza](https://github.com/AzureByte)

Thank you!

Expand Down

0 comments on commit 0894145

Please sign in to comment.