feat(image): pass gravity to crop

This commit is contained in:
Tomas Aparicio 2015-04-08 02:37:16 +02:00
parent 5a6ed699e8
commit 2607ff2232
2 changed files with 7 additions and 6 deletions

View file

@ -49,7 +49,7 @@ func TestImageEnlarge(t *testing.T) {
}
func TestImageCrop(t *testing.T) {
buf, err := initImage("test.jpg").Crop(800, 600)
buf, err := initImage("test.jpg").Crop(800, 600, NORTH)
if err != nil {
t.Errorf("Cannot process the image: %#v", err)
}