PptxGenJS icon indicating copy to clipboard operation
PptxGenJS copied to clipboard

Need an example for an image placeholder

Open chriswalz opened this issue 6 years ago • 4 comments

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'})

chriswalz avatar Sep 30 '19 04:09 chriswalz

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.

gitbrent avatar Oct 02 '19 03:10 gitbrent

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 placeholder image.

Therefore, i'm pushing this to a future release as v3.1 draws near.

gitbrent avatar Jan 21 '20 04:01 gitbrent

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 ?

salievn avatar Aug 16 '20 12:08 salievn

Hi @gitbrent , any feedback ? thank you very much

salievn avatar Sep 18 '20 17:09 salievn