From 045680fba59750edd0ff366ab45bb0c97965e152 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Wed, 19 Aug 2015 16:28:28 +0100 Subject: [PATCH] Document use of crop gravity as a String --- docs/api.md | 2 +- docs/changelog.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index bfe5770b..049aa2be 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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`. diff --git a/docs/changelog.md b/docs/changelog.md index 7191b444..d1cc400b 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -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 - 12th August 2015 * Silence MSVC warning: "C4530: C++ exception handler used, but unwind semantics are not enabled".