I am trying to extract all the images from pptx file, but could not extract background images. I am unable to find an image attribute in presentation.slide_masters or presentation.slide_layouts. How can I extract background images? The below code is used to extract images from slides
Thanks
for idx, slide in enumerate(presentation.slides): for shape in slide.shapes: if shape.shape_type == MSO_SHAPE_TYPE.PICTURE: image_blob = shape.image.blob
https://stackoverflow.com/questions/67239488/how-to-extract-background-images-with-python-pptx April 24, 2021 at 01:05PM
没有评论:
发表评论