MCPcopy
hub / github.com/h2non/bimg / TestImagePdfToJpeg

Function TestImagePdfToJpeg

image_test.go:68–81  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func 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
83func TestImageSvgToJpeg(t *testing.T) {
84 if VipsMajorVersion >= 8 && VipsMinorVersion > 2 {

Callers

nothing calls this directly

Calls 3

initImageFunction · 0.85
WriteFunction · 0.85
ProcessMethod · 0.80

Tested by

no test coverage detected