-
Notifications
You must be signed in to change notification settings - Fork 46
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
Comments
I added the option to the source code. Need to wait for npm release. |
@normanrz Before we publish, can you fix the build please? (: And thanks for shipping this fast! |
Sorry, missed that. Fixed in e11da89 |
Wow, thanks for the quick addition, it works great 👍 |
@normanrz Seem like the build is still broken: https://travis-ci.org/excellenteasy/grunt-image-resize/jobs/19970045#L361 |
To make the tests work again, we need to wait for a bugfix in the underlying |
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.
The text was updated successfully, but these errors were encountered: