Document use of crop gravity as a String

This commit is contained in:
Lovell Fuller 2015-08-19 16:28:28 +01:00
parent 692347cc6b
commit 045680fba5
2 changed files with 7 additions and 1 deletions

View File

@ -109,7 +109,7 @@ Scale output to `width` x `height`. By default, the resized image is cropped to
Crop the resized image to the exact size specified, the default behaviour.
`gravity`, if present, is an attribute of the `sharp.gravity` Object e.g. `sharp.gravity.north`.
`gravity`, if present, is a String or an attribute of the `sharp.gravity` Object e.g. `sharp.gravity.north`.
Possible values are `north`, `east`, `south`, `west`, `center` and `centre`. The default gravity is `center`/`centre`.

View File

@ -2,6 +2,12 @@
### v0.11 - "*knife*"
#### v0.11.2 - TBD
* Allow crop gravity to be provided as a String.
[#255](https://github.com/lovell/sharp/pull/255)
[@papandreou](https://github.com/papandreou)
#### v0.11.1 - 12<sup>th</sup> August 2015
* Silence MSVC warning: "C4530: C++ exception handler used, but unwind semantics are not enabled".