Open idflood opened 10 years ago
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 https://github.com/excellenteasy/grunt-image-resize/commit/e11da896016bbe5dcb46003c01923f39ea98645b
Wow, thanks for the quick addition, it works great :+1:
@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 gm
module (https://github.com/aheckmann/gm/pull/260).
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.