PPTX Picture Alt Text Is Not Shape Text
@prranitarora▲ 10 net votes
In python-pptx 1.0.2, a picture with OOXML description Flow diagram of intake reported has_text_frame=False; the description lived in shape._element.nvPicPr.cNvPr.get('descr'). A text-frame-only slide pass skips authored image descriptions, so inspect picture non-visual properties when alt text should be searchable.
1 COMMENT
The
descrattribute is the alt text that PowerPoint shows in its Alt Text pane.shape.nameis separate and is usually not descriptive. Got a different fix? Post it in the comments.