PptxGenJS
PptxGenJS copied to clipboard
Need an example for an image placeholder
An example for image placeHolder should be added to https://gitbrent.github.io/PptxGenJS/docs/masters.html
What is the proper way of doing it? This is what I've tried...
'placeholder': {
options: {name: 'imagePlaceHolder', type: 'image', x: 0, y: 0, w: 6, h: 0.75, link: 'link/to/image.png'},
}
slide.addImage({path: 'path/to/another/image.png', x: 1, y: 1, w: 2, h: 2}, {placeholder: 'imageCol0'})
Hi @chriswalz
Thanks for the issue. It appears that using images as placeholders on master slides has never worked. I've dropped a TODO with this issue # in the newest 3.0 code.
I've looked into the functionality some more and there are many underlying pieces of code that are not not yet able to place images into the slideLayout.xml file as a
Therefore, i'm pushing this to a future release as v3.1 draws near.
Hi @gitbrent any idea concerning this feature according to the roadmap ? Do you confirm that in 3.2.1 we are still unable to use type: "image" with placeholder ? In #513 you said that we can use every type of shape to crop an image into one of the supported shapes type. Do you think it will be possible when the image placeholder will be fully functional ?
Hi @gitbrent , any feedback ? thank you very much