mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Document use of crop gravity as a String
This commit is contained in:
parent
692347cc6b
commit
045680fba5
@ -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`.
|
||||
|
||||
|
@ -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".
|
||||
|
Loading…
x
Reference in New Issue
Block a user