how to download or save a picture from a powerpoint ppt with python pptx
问题 I am working on powerpoints using python.pptx, where I am struggling to save certain picture from a slide to local system.Can anyone suggest me how to do it? Until now : I am able to print the shape, But dont know how to save the picture as we do with presentation using prs.save. prs =Presentation('mypath/myPowerpoint.pptx') slide2 = prs.slides[1] #i want to save picture in slide 2 pic = slide2.shapes[4] # i have check shape 5 is the picture print(pic.name) # i am able to print the picture