metadata: title: "图片适配模式端到端测试" size: "16:9" dpi: 96 slides: # 测试所有 fit 模式 - elements: - type: text content: "图片适配模式测试" box: [1, 0.5, 8, 0.8] font: size: 32 bold: true align: center # stretch 模式(默认) - type: image src: "../fixtures/images/test_image.png" box: [0.5, 1.5, 2, 1.5] # contain 模式 - type: image src: "../fixtures/images/test_image.png" box: [3, 1.5, 2, 1.5] fit: contain background: "#f0f0f0" # cover 模式 - type: image src: "../fixtures/images/test_image.png" box: [5.5, 1.5, 2, 1.5] fit: cover # center 模式 - type: image src: "../fixtures/images/test_image.png" box: [8, 1.5, 2, 1.5] fit: center background: "#ffffff"