fix(vips): memory inconsistency

This commit is contained in:
Tomas Aparicio 2015-04-07 11:25:54 +02:00
parent bc88532806
commit 34dda8c57c
6 changed files with 51 additions and 8 deletions

View file

@ -37,6 +37,14 @@ func TestImageFlip(t *testing.T) {
Write("fixtures/test_flip_out.jpg", buf)
}
func TestImageThumbnail(t *testing.T) {
buf, err := initImage("test.jpg").Thumbnail(100)
if err != nil {
t.Errorf("Cannot process the image: %#v", err)
}
Write("fixtures/test_thumbnail_out.jpg", buf)
}
func TestImageRotate(t *testing.T) {
buf, err := initImage("test_flip_out.jpg").Rotate(90)
if err != nil {