Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to specify the crop gravity #12

Open
idflood opened this issue Mar 3, 2014 · 6 comments
Open

Add option to specify the crop gravity #12

idflood opened this issue Mar 3, 2014 · 6 comments

Comments

@idflood
Copy link

idflood commented Mar 3, 2014

By default the image is cropped in the center, but on some occasion it needs top be cropped differently. For instance a page screenshot is sometimes more usefull if we only keep the top of the page and cut the bottom.

ImageMagick has an option 'gravity' which seems to do exactly that.

@normanrz
Copy link

normanrz commented Mar 3, 2014

I added the option to the source code. Need to wait for npm release.

@boennemann
Copy link
Contributor

@normanrz Before we publish, can you fix the build please? (:

And thanks for shipping this fast!

@normanrz
Copy link

normanrz commented Mar 3, 2014

Sorry, missed that. Fixed in e11da89

@idflood
Copy link
Author

idflood commented Mar 3, 2014

Wow, thanks for the quick addition, it works great 👍

@idflood idflood closed this as completed Mar 3, 2014
@boennemann
Copy link
Contributor

@normanrz
Copy link

normanrz commented Mar 3, 2014

To make the tests work again, we need to wait for a bugfix in the underlying gm module (aheckmann/gm#260).

@normanrz normanrz reopened this Mar 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants