Navdeep Singh
Navdeep Singh

Reputation: 71

Add a image in table cell using python-pptx

I am using the python-pptx library to create a table in pptx document. I want to add an image in the table cell, but I haven't found such option to do so.

I am adding cell using following code:

table.cell(0, 1).text = 'cell text'

How we can add an image in a table cell using python-pptx?

Upvotes: 0

Views: 1566

Answers (1)

Martin Packer
Martin Packer

Reputation: 763

I also would be interested in the answer to this:

One of my use cases is creating 4-up graphics slides and a 2 x 2 table would be a handy way.

The other use case - which I have for a presentation right now - is adding small images into a table.

The first real question is: Can Powerpoint even handle graphics in a table cell?

Upvotes: 1

Related Questions