Python-pptx Slide.shapes.add_picture() Not Recognizing Image Files
I am trying to add images to a PowerPoint slide using pptx. img_path = 'test.png' prs = Presentation() blank_slide_layout = prs.slide_layouts[6] slide = prs.slides.add_slide(blank
Solution 1:
This looks like a problem related to the PIL/Pillow library. Can you say more about the environment you're working in and what PIL version you're using? I know there are some potential problems when having both PIL and Pillow installed. If you have control over your Python environment I'd start by uninstalling both and then installing just the most recent version of Pillow.
Post a Comment for "Python-pptx Slide.shapes.add_picture() Not Recognizing Image Files"