OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

python pptx align image to center of slide

  • Thread starter Thread starter thebeancounter
  • Start date Start date
T

thebeancounter

Guest
I need to add an image to a pptx slide, and want to locate it in the center of the slide, without having to calculate the size and alignment manually,

I found a question about doing so with text: question about center aligning text

And the documentation about doing so with text: documentation about center aligning text

But can't find a way to do it for an image,

Ideas?
<p>I need to add an image to a pptx slide, and want to locate it in the center of the slide, without having to calculate the size and alignment manually, </p>

<p>I found a question about doing so with text:
<a href="https://stackoverflow.com/questions/38935137/center-align-text-with-python-pptx">question about center aligning text</a></p>

<p>And the documentation about doing so with text:
<a href="https://python-pptx.readthedocs.io/en/latest/api/enum/PpParagraphAlignment.html" rel="noreferrer">documentation about center aligning text</a></p>

<p>But can't find a way to do it for an image, </p>

<p>Ideas? </p>
 

Latest posts

D
Replies
0
Views
1
Damiano Miazzi
D
Top