(t *testing.T)
| 66 | } |
| 67 | |
| 68 | func TestImagePdfToJpeg(t *testing.T) { |
| 69 | if VipsMajorVersion >= 8 && VipsMinorVersion > 2 { |
| 70 | i := initImage("test.pdf") |
| 71 | options := Options{ |
| 72 | Type: JPEG, |
| 73 | } |
| 74 | buf, err := i.Process(options) |
| 75 | if err != nil { |
| 76 | t.Errorf("Cannot process the image: %#v", err) |
| 77 | } |
| 78 | |
| 79 | Write("testdata/test_pdf.jpg", buf) |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | func TestImageSvgToJpeg(t *testing.T) { |
| 84 | if VipsMajorVersion >= 8 && VipsMinorVersion > 2 { |