(t *testing.T)
| 400 | } |
| 401 | |
| 402 | func TestTransparentImageConvert(t *testing.T) { |
| 403 | image := initImage("transparent.png") |
| 404 | options := Options{ |
| 405 | Type: JPEG, |
| 406 | Background: Color{255, 255, 255}, |
| 407 | } |
| 408 | buf, err := image.Process(options) |
| 409 | if err != nil { |
| 410 | t.Errorf("Cannot process the image: %#v", err) |
| 411 | } |
| 412 | Write("testdata/test_transparent_image_convert_out.jpg", buf) |
| 413 | } |
| 414 | |
| 415 | func TestImageMetadata(t *testing.T) { |
| 416 | data, err := initImage("test.png").Metadata() |