Skip to content

crop: Permit specifying the gravity as a string#255

Merged
lovell merged 1 commit intolovell:masterfrom
papandreou:feature/cropString
Aug 19, 2015
Merged

crop: Permit specifying the gravity as a string#255
lovell merged 1 commit intolovell:masterfrom
papandreou:feature/cropString

Conversation

@papandreou
Copy link
Copy Markdown
Contributor

I have a use case where the gravity is taken from a query string and it's cumbersome to use the numeric values or do a lookup in require('sharp').gravity. Seemed like it would be easy (and desirable) to support the strings directly.

Will conflict slightly with #205, but it should be easy to resolve.

Will be looked up in require('sharp').gravity.
lovell added a commit that referenced this pull request Aug 19, 2015
crop: Permit specifying the gravity as a string
@lovell lovell merged commit 692347c into lovell:master Aug 19, 2015
@lovell
Copy link
Copy Markdown
Owner

lovell commented Aug 19, 2015

Great, thank you Andreas.

@lovell lovell added this to the v0.11.2 milestone Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants