In documentation it is there we can give image as an input in the fill.
THIS IS FOR PPTXGENJS
I tried using it but when I generated the ppt the shape I filled with the image was filled with black color not the image I intended to fill with.
this is the code block
const shapeOptions = {
x: 1.0,
y: 1.0,
w: 4.0,
h: 3.0,
fill: { type: 'image', data: imgUrl },
};
slide.addShape(pptxgen.shapes.RECTANGLE, shapeOptions);
New contributor
Bhawya Misri is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.