0

I am trying to insert some images on slides. But after I run the code, the the images are getting corrupted and a message would appear. I have pasted the message here.: enter image description here

The code which i am using is:

pic1=prs.slides[1].shapes.add_picture(image_filepath,pre_left,top,width,height);
prs.save(file_path)
Mr. T
  • 11,960
  • 10
  • 32
  • 54
Manoj Kumar
  • 176
  • 7
  • Please provide a [Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve) so people can reproduce your problem. This includes a sample input that replicates your error. – Mr. T Sep 23 '18 at 06:48
  • In particular, your code should show the imports used, how you got a `Presentation (prs)` object, and the arguments to the `.add_picture()` call should be replaced with literals as much as possible, such that the provenance of those variables is removed from consideration. Note this will likely mean writing a separate block of code, not just pasting from your existing code. Often this exercise helps you find the error, which is one other reason it's good etiquette. This method is thoroughly tested in the package test suite which means the odds are extremely high it is an error in your code. – scanny Sep 24 '18 at 17:34

0 Answers0