I want to insert pictures in a Picture Placeholder. Previously I get EXIF information to rotate if needed. This is my code:
placeholder = slide.placeholder[N]
photo.open()
ph_picture = placeholder.insert_picture(photo)
if exif['Orientation'] == LANDSCAPE_ORIENTATION:
ph_picture.rotation = 90.0
When I open the pptx
generated file in LibreOffice, the images looks great. But in PowerPoint they vanish. Removing the lines that rotates the image makes that the images appears again.
Any clue what is happening or what is a better way to rotate the images? (I've also tried with PIL but the result is even worst).