You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
319 B

package bimg
import (
"io/ioutil"
"os"
"path"
"testing"
)
func TestImageResize(t *testing.T) {
data, _ := os.Open(path.Join("fixtures/test.jpg"))
buf, err := ioutil.ReadAll(data)
image := NewImage(buf)
buf, err = image.Resize(300, 240)
if err != nil {
t.Errorf("Cannot process the image: %#v", err)
}
}