Fix: Crop is doing resize. Closes #128

This commit is contained in:
Dan Persa 2017-01-13 16:13:51 +01:00
parent e099e4c9f5
commit 9b6989c3ce
2 changed files with 14 additions and 6 deletions

View file

@ -176,7 +176,7 @@ func TestImageCropByWidth(t *testing.T) {
t.Errorf("Cannot process the image: %s", err)
}
err = assertSize(buf, 600, 375)
err = assertSize(buf, 600, 1050)
if err != nil {
t.Error(err)
}
@ -190,7 +190,7 @@ func TestImageCropByHeight(t *testing.T) {
t.Errorf("Cannot process the image: %s", err)
}
err = assertSize(buf, 480, 300)
err = assertSize(buf, 1680, 300)
if err != nil {
t.Error(err)
}